Skip to content

Commit 8addd99

Browse files
committed
Update runtests
1 parent bdf0f52 commit 8addd99

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

test/runtests.jl

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,14 +118,14 @@ using Plots
118118
@test ABCDMatrixOptics.zR(beam4) /2 ABCDMatrixOptics.zR(GaussianBeam())
119119
end
120120

121-
# how to do that properly?
121+
# TODO: how to do that properly?
122122
@testset "Plots" begin
123-
p = plot([FreeSpace(100e-3)], GaussianBeam(w0=100e-6, λ=500e-9, n=1.3, zpos=0))
124-
@test p == p
125-
p = plot([FreeSpace(100e-3)], GaussianBeam(w0=100e-6, λ=1000e-9, n=1.3, zpos=0))
126-
@test p == p
127-
p = plot([FreeSpace(100e-3)], GaussianBeam(w0=100e-6, λ=100e-9, n=1.3, zpos=0))
128-
@test p == p
123+
for λ in [100e-9, 500e-9]
124+
for beam in [GaussianBeam(w0=100e-6, λ=λ, n=1.3, zpos=0), GeometricBeam(w=100e-6, k=0.0)]
125+
p = plot([FreeSpace(100e-3)], beam)
126+
@test p == p
127+
end
128+
end
129129
end
130130

131131
return true

0 commit comments

Comments
 (0)