Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
sloede committed Jan 30, 2024
1 parent 398f03f commit 39a6071
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions test/trixi_include.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
@test x == 7

# Verify default version (that includes in `Main`)
@test_nowarn trixi_include(filename, x=11)
@test_nowarn trixi_include(filename, x = 11)
@test Main.x == 11

@test_throws "assignment `y` not found in expression" trixi_include(@__MODULE__,
Expand Down Expand Up @@ -106,18 +106,17 @@
# This is the default `maxiters` inserted by `trixi_include`
@test x == 10^5


@test_nowarn trixi_include(@__MODULE__, filename2,
maxiters = 7)
# Test that `maxiters` got overwritten
@test x == 7

# Verify that adding `maxiters` to `maxiters` results in exactly one of them
# case 1) `maxiters` is *before* semicolon in included file
@test_nowarn trixi_include(@__MODULE__, filename3, maxiters=11)
@test_nowarn trixi_include(@__MODULE__, filename3, maxiters = 11)
@test y == 11
# case 2) `maxiters` is *after* semicolon in included file
@test_nowarn trixi_include(@__MODULE__, filename3, maxiters=14)
@test_nowarn trixi_include(@__MODULE__, filename3, maxiters = 14)
@test y == 14
finally
rm(filename1, force = true)
Expand Down

0 comments on commit 39a6071

Please sign in to comment.