Skip to content

Commit

Permalink
Simplify test
Browse files Browse the repository at this point in the history
  • Loading branch information
bennibolm committed Oct 22, 2024
1 parent 64c783f commit e0479c5
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
4 changes: 2 additions & 2 deletions test/test_p4est_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -365,8 +365,8 @@ end
# Run without coverage takes 85 time steps.
@test startswith(lines[end], "85, 0.3, 1.0, 0.57771")
end
@test length(split(lines[end], ",")) == 4
@test any(occursin.(r"NaN", lines)) == false
@test count(",", lines[end]) == 3
@test !any(occursin.(r"NaN", lines))
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
let
Expand Down
12 changes: 6 additions & 6 deletions test/test_structured_2d.jl
Original file line number Diff line number Diff line change
Expand Up @@ -749,8 +749,8 @@ end
# Run without coverage takes 193 time steps.
@test startswith(lines[end], "193, 0.05, 1.0, 0.3160")
end
@test length(split(lines[end], ",")) == 4
@test any(occursin.(r"NaN", lines)) == false
@test count(",", lines[end]) == 3
@test !any(occursin.(r"NaN", lines))
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
let
Expand Down Expand Up @@ -797,8 +797,8 @@ end
# Run without coverage takes 191 time steps.
@test startswith(lines[end], "191, 0.05, 3.70")
end
@test length(split(lines[end], ",")) == 10
@test any(occursin.(r"NaN", lines)) == false
@test count(",", lines[end]) == 9
@test !any(occursin.(r"NaN", lines))

# Test alphas_min.txt
lines = readlines(joinpath("out", "alphas_min.txt"))
Expand All @@ -811,8 +811,8 @@ end
# Run without coverage takes 191 time steps.
@test startswith(lines[end], "191, 0.05, -0.0, 0.7216")
end
@test length(split(lines[end], ",")) == 10
@test any(occursin.(r"NaN", lines)) == false
@test count(",", lines[end]) == 9
@test !any(occursin.(r"NaN", lines))
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
let
Expand Down
12 changes: 6 additions & 6 deletions test/test_tree_2d_euler.jl
Original file line number Diff line number Diff line change
Expand Up @@ -576,8 +576,8 @@ end
# Run without coverage takes 381 time steps.
@test startswith(lines[end], "381, 1.0, 1.0, 0.544")
end
@test length(split(lines[end], ",")) == 4
@test any(occursin.(r"NaN", lines)) == false
@test count(",", lines[end]) == 3
@test !any(occursin.(r"NaN", lines))
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
let
Expand Down Expand Up @@ -639,8 +639,8 @@ end
# Run without coverage takes 349 time steps.
@test startswith(lines[end], "349, 1.0, 0.0002")
end
@test length(split(lines[end], ",")) == 14
@test any(occursin.(r"NaN", lines)) == false
@test count(",", lines[end]) == 13
@test !any(occursin.(r"NaN", lines))

# Test alphas_min.txt
lines = readlines(joinpath("out", "alphas_min.txt"))
Expand All @@ -653,8 +653,8 @@ end
# Run without coverage takes 349 time steps.
@test startswith(lines[end], "349, 1.0, -0.0, 0.773")
end
@test length(split(lines[end], ",")) == 14
@test any(occursin.(r"NaN", lines)) == false
@test count(",", lines[end]) == 13
@test !any(occursin.(r"NaN", lines))
# Ensure that we do not have excessive memory allocations
# (e.g., from type instabilities)
let
Expand Down

0 comments on commit e0479c5

Please sign in to comment.