Skip to content

Commit

Permalink
Add missing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmaostc committed Sep 21, 2023
1 parent 46a0722 commit fa902e2
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@ using Plots

@test ABCDMatrixOptics.transfer_matrix([1 0; -1 -1]) == [1 0; -1 -1]
@test [b0.w, b0.k] == b1
@test [ThinLens(100), FreeSpace(100)] * [100, 0.0] == [0.0, -1.0]
end

@testset "ThinLens" begin
Expand Down Expand Up @@ -121,6 +122,10 @@ using Plots
@testset "Plots" begin
p = plot([FreeSpace(100e-3)], GaussianBeam(w0=100e-6, λ=100e-9, n=1.3, zpos=0))
@test p == p
p = plot([FreeSpace(100e-3)], GaussianBeam(w0=100e-6, λ=1000e-9, n=1.3, zpos=0))
@test p == p
p = plot([FreeSpace(100e-3)], GaussianBeam(w0=100e-6, λ=100e-9, n=1.3, zpos=0))
@test p == p
end

return true
Expand Down

2 comments on commit fa902e2

@roflmaostc
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JuliaRegistrator
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Registration pull request created: JuliaRegistries/General/91891

After the above pull request is merged, it is recommended that a tag is created on this repository for the registered package version.

This will be done automatically if the Julia TagBot GitHub Action is installed, or can be done manually through the github interface, or via:

git tag -a v0.2.0 -m "<description of version>" fa902e2ae7dd612c1b24fd2455116645dce6a3b6
git push origin v0.2.0

Please sign in to comment.