Skip to content
This repository has been archived by the owner on Aug 18, 2021. It is now read-only.

Commit

Permalink
Fix error messages in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
efaulhaber committed Oct 10, 2020
1 parent 36cd80b commit a6e0047
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions test/test_3d.jl
Expand Up @@ -42,15 +42,17 @@ isdir(outdir) && rm(outdir, recursive=true)
end

@testset "outside negative border slice" begin
@test_throws ErrorException("slice_axis_intersect outside of domain") trixi2img(
slice_axis_intersect=-1.01
@test_throws ErrorException("slice_axis_intersect $slice_axis_intersect outside of domain") trixi2img(
joinpath(outdir, "solution_000000.h5"); output_directory=outdir,
slice_axis=:x, slice_axis_intersect=-1.01)
slice_axis=:x, slice_axis_intersect=slice_axis_intersect)
end

@testset "outside positive border slice" begin
@test_throws ErrorException("slice_axis_intersect outside of domain") trixi2img(
slice_axis_intersect=1.005
@test_throws ErrorException("slice_axis_intersect $slice_axis_intersect outside of domain") trixi2img(
joinpath(outdir, "solution_000000.h5"); output_directory=outdir,
slice_axis=:y, slice_axis_intersect=1.005)
slice_axis=:y, slice_axis_intersect=slice_axis_intersect)
end
end

Expand Down

0 comments on commit a6e0047

Please sign in to comment.