Skip to content

Commit

Permalink
use old formatting style again
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Feb 13, 2024
1 parent 856caec commit c86dca1
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,15 +99,17 @@ using SparseArrays: sparse, SparseMatrixCSC
equations = @test_nowarn BBMBBMEquations1D(gravity_constant = 9.81, D = 2.0)
@test_nowarn print(equations)
@test_nowarn display(equations)
conversion_functions = [waterheight_total,
conversion_functions = [
waterheight_total,
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim]
prim2prim
]
for conversion in conversion_functions
@test DispersiveShallowWater.varnames(conversion, equations) isa Tuple
end
Expand All @@ -126,15 +128,17 @@ using SparseArrays: sparse, SparseMatrixCSC
equations = @test_nowarn BBMBBMVariableEquations1D(gravity_constant = 9.81)
@test_nowarn print(equations)
@test_nowarn display(equations)
conversion_functions = [waterheight_total,
conversion_functions = [
waterheight_total,
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim]
prim2prim
]
for conversion in conversion_functions
@test DispersiveShallowWater.varnames(conversion, equations) isa Tuple
end
Expand All @@ -156,7 +160,8 @@ using SparseArrays: sparse, SparseMatrixCSC
gamma = 0.15707070707070708)
@test_nowarn print(equations)
@test_nowarn display(equations)
conversion_functions = [waterheight_total,
conversion_functions = [
waterheight_total,
waterheight,
velocity,
momentum,
Expand All @@ -166,7 +171,8 @@ using SparseArrays: sparse, SparseMatrixCSC
prim2cons,
prim2prim,
energy_total_modified,
entropy_modified]
entropy_modified
]
for conversion in conversion_functions
@test DispersiveShallowWater.varnames(conversion, equations) isa Tuple
end
Expand Down

0 comments on commit c86dca1

Please sign in to comment.