Skip to content

Commit

Permalink
More tests
Browse files Browse the repository at this point in the history
  • Loading branch information
roflmaostc committed Sep 15, 2023
1 parent 839aee5 commit dca194f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Project.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@ RecipesBase = "1"
julia = "1.9"

[extras]
Plots = "91a5bcdd-55d7-5caf-9e0b-520d859cae80"
Test = "8dfed614-e22c-5e08-85e1-65c5234f0b40"

[targets]
test = ["Test"]
test = ["Test", "Plots"]
6 changes: 6 additions & 0 deletions test/runtests.jl
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using ABCDMatrixOptics
using Test
using Plots

@testset "ABCDMatrixOptics.jl" begin

Expand Down Expand Up @@ -108,6 +109,11 @@ using Test

end

# how to do that properly?
@testset "Plots" begin
p = plot([FreeSpace(100e-3)], GaussianBeam(w0=100e-6, λ=100e-9, n=1.3, zpos=0))
@test p == p
end

return true
end

0 comments on commit dca194f

Please sign in to comment.