Skip to content

Commit

Permalink
add unit test for initial_condition_convergence
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickersing committed Mar 28, 2024
1 parent d4cfb82 commit 1b3f8a3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,11 @@ end
rhos = [0.1, 0.2, 0.3]) ==
ShallowWaterMultiLayerEquations1D(gravity_constant = 9.81,
rhos = (0.1, 0.2, 0.3))

# Check for argument error if initial condition is called with wrong number of layers
equations = ShallowWaterMultiLayerEquations1D(gravity_constant = 9.81,
rhos = (0.1, 0.2, 0.3, 0.4))
@test_throws ArgumentError initial_condition_convergence_test(0.0, 0.0, equations)
end
end # Unit tests

Expand Down

0 comments on commit 1b3f8a3

Please sign in to comment.