From 7092265877d86b41c3cffbb346a03b269510c7e9 Mon Sep 17 00:00:00 2001 From: Joshua Lampert Date: Wed, 11 Dec 2024 17:20:47 +0100 Subject: [PATCH] add test for ArgumentError --- test/test_unit.jl | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/test/test_unit.jl b/test/test_unit.jl index 6952ea6b..8e26df8e 100644 --- a/test/test_unit.jl +++ b/test/test_unit.jl @@ -250,6 +250,15 @@ end U_modified_total = @inferred DispersiveShallowWater.integrate(U_modified, semi) @test isapprox(U_modified_total, e_modified_total) end + + @testset "reflecting boundary conditions" begin + initial_condition = initial_condition_manufactured_reflecting + boundary_conditions = boundary_condition_reflecting + mesh = Mesh1D(-1.0, 1.0, 10) + solver = Solver(mesh, 4) + @test_throws ArgumentError Semidiscretization(mesh, equations, initial_condition, + solver; boundary_conditions) + end end @testitem "SerreGreenNaghdiEquations1D" setup=[Setup] begin