Skip to content

Commit

Permalink
add test for ArgumentError
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Dec 11, 2024
1 parent 7358093 commit 7092265
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 7092265

Please sign in to comment.