From dca194f24601aefecad9db5a60c131e077a9ccfa Mon Sep 17 00:00:00 2001 From: roflmaostc Date: Fri, 15 Sep 2023 13:33:31 +0200 Subject: [PATCH] More tests --- Project.toml | 3 ++- test/runtests.jl | 6 ++++++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/Project.toml b/Project.toml index 587951e..d7ed006 100644 --- a/Project.toml +++ b/Project.toml @@ -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"] diff --git a/test/runtests.jl b/test/runtests.jl index 26e181e..2a958cb 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,6 @@ using ABCDMatrixOptics using Test +using Plots @testset "ABCDMatrixOptics.jl" begin @@ -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