From 06c028200e85314bad8f339f3db38068a663aeca Mon Sep 17 00:00:00 2001 From: AshtonSBradley Date: Sat, 30 Dec 2023 16:40:39 +1300 Subject: [PATCH] add test for no vortex fallback --- test/no_vortex_test.jl | 2 ++ test/runtests.jl | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/no_vortex_test.jl b/test/no_vortex_test.jl index 585e1ad..0376ba9 100644 --- a/test/no_vortex_test.jl +++ b/test/no_vortex_test.jl @@ -6,3 +6,5 @@ x = LinRange(-Lx/2,Lx/2, Nx+1)[1:end-1]; y = LinRange(-Ly/2,Ly/2, Ny+1)[1:end-1] psi = one.(x*y') |> complex vfound = findvortices(Torus(psi,x,y), periodic=true) + +@test vfound == PointVortex[] \ No newline at end of file diff --git a/test/runtests.jl b/test/runtests.jl index 86c7137..e8f20d8 100644 --- a/test/runtests.jl +++ b/test/runtests.jl @@ -1,5 +1,7 @@ using VortexDistributions, Test, SafeTestsets +@safetestset "No Vortex Fallback" begin include("no_vortex_test.jl") end + @safetestset "Point Vortex" begin include("point_vortex_test.jl") end @safetestset "Single Vortex Accuracy" begin include("single_vort_acc_test.jl") end