Skip to content
This repository has been archived by the owner on Mar 1, 2023. It is now read-only.

Commit

Permalink
test error type instead of exact message
Browse files Browse the repository at this point in the history
  • Loading branch information
simonbyrne committed May 11, 2020
1 parent a1adb06 commit 75c5b08
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions test/Numerics/Mesh/BrickMesh.jl
Original file line number Diff line number Diff line change
Expand Up @@ -82,11 +82,7 @@ end
@test ((1, 2, 3), 5) == BrickMesh.vertsortandorder(3, 2, 1)
@test ((1, 2, 3), 6) == BrickMesh.vertsortandorder(1, 3, 2)

err = ErrorException(
"Problem finding vertex ordering (1, 1, 2) with flips" *
"\n (false, true, false)",
)
@test_throws err BrickMesh.vertsortandorder(2, 1, 1)
@test_throws ErrorException BrickMesh.vertsortandorder(2, 1, 1)

@test ((1, 2, 3, 4), 1) == BrickMesh.vertsortandorder(1, 2, 3, 4)
@test ((1, 2, 3, 4), 2) == BrickMesh.vertsortandorder(1, 3, 2, 4)
Expand All @@ -97,12 +93,7 @@ end
@test ((1, 2, 3, 4), 7) == BrickMesh.vertsortandorder(4, 2, 3, 1)
@test ((1, 2, 3, 4), 8) == BrickMesh.vertsortandorder(4, 3, 2, 1)

err = ErrorException(
"Problem finding vertex ordering (1, 1, 3, 3)" *
"\n with flips" *
" (false, true, false, false, true)",
)
@test_throws err BrickMesh.vertsortandorder(1, 3, 3, 1)
@test_throws ErrorException BrickMesh.vertsortandorder(1, 3, 3, 1)
end

@testset "Mesh" begin
Expand Down

0 comments on commit 75c5b08

Please sign in to comment.