Skip to content

Commit

Permalink
fix version of JuliaFormatter
Browse files Browse the repository at this point in the history
  • Loading branch information
JoshuaLampert committed Feb 13, 2024
1 parent c33ee4f commit 856caec
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 27 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/Format-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- uses: actions/checkout@v4
- name: Install JuliaFormatter and format
run: |
julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter"))'
julia -e 'using Pkg; Pkg.add(PackageSpec(name = "JuliaFormatter", version="1.0.45"))'
julia -e 'using JuliaFormatter; format(["src", "test", "examples"], verbose = true)'
- name: Format check
run: |
Expand Down
52 changes: 26 additions & 26 deletions test/test_unit.jl
Original file line number Diff line number Diff line change
Expand Up @@ -100,14 +100,14 @@ using SparseArrays: sparse, SparseMatrixCSC
@test_nowarn print(equations)
@test_nowarn display(equations)
conversion_functions = [waterheight_total,
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim]
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim]
for conversion in conversion_functions
@test DispersiveShallowWater.varnames(conversion, equations) isa Tuple
end
Expand All @@ -127,14 +127,14 @@ using SparseArrays: sparse, SparseMatrixCSC
@test_nowarn print(equations)
@test_nowarn display(equations)
conversion_functions = [waterheight_total,
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim]
waterheight,
velocity,
momentum,
discharge,
entropy,
energy_total,
prim2cons,
prim2prim]
for conversion in conversion_functions
@test DispersiveShallowWater.varnames(conversion, equations) isa Tuple
end
Expand All @@ -157,16 +157,16 @@ using SparseArrays: sparse, SparseMatrixCSC
@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]
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 856caec

Please sign in to comment.