Skip to content

Commit

Permalink
apply new formatter version
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Feb 10, 2024
1 parent 3cb131d commit c33ee4f
Showing 1 changed file with 29 additions and 35 deletions.
64 changes: 29 additions & 35 deletions test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -99,17 +99,15 @@ 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,
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim,
]
conversion_functions = [waterheight_total,
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim]
for conversion in conversion_functions
@test DispersiveShallowWater.varnames(conversion, equations) isa Tuple
end
Expand All @@ -128,17 +126,15 @@ using SparseArrays: sparse, SparseMatrixCSC
equations = @test_nowarn BBMBBMVariableEquations1D(gravity_constant = 9.81)
@test_nowarn print(equations)
@test_nowarn display(equations)
conversion_functions = [
waterheight_total,
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim,
]
conversion_functions = [waterheight_total,
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim]
for conversion in conversion_functions
@test DispersiveShallowWater.varnames(conversion, equations) isa Tuple
end
Expand All @@ -160,19 +156,17 @@ using SparseArrays: sparse, SparseMatrixCSC
gamma = 0.15707070707070708)
@test_nowarn print(equations)
@test_nowarn display(equations)
conversion_functions = [
waterheight_total,
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim,
energy_total_modified,
entropy_modified,
]
conversion_functions = [waterheight_total,
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim,
energy_total_modified,
entropy_modified]
for conversion in conversion_functions
@test DispersiveShallowWater.varnames(conversion, equations) isa Tuple
end
Expand Down

0 comments on commit c33ee4f

Please sign in to comment.