Skip to content

Commit

Permalink
clean up tri test
Browse files Browse the repository at this point in the history
  • Loading branch information
jlchan committed Sep 20, 2022
1 parent 91a8d0e commit 3fe0f35
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/triangulate_tests.jl
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
mean(x) = sum(x) / length(x)

@testset "Mesh, timestep, and Triangulate utils" begin
tol = 5e2 * eps()
@testset "Timestep utils" begin
Expand Down Expand Up @@ -60,7 +62,6 @@
md = MeshData((VX, VY), EToV, rd)
@test size(EToV, 1) == md.num_elements == 493
@test length(VX) == length(VY) == 272
mean(x) = sum(x) / length(x)
@test isapprox(mean(md.x), 1.0, rtol=1 / domain.num_segments)
@test isapprox(mean(md.y), 2.0, rtol=1 / domain.num_segments)
@test isapprox(sum(md.wJq), pi, rtol=1 / domain.num_segments)
Expand All @@ -73,7 +74,6 @@
md = MeshData((VX, VY), EToV, rd)
@test size(EToV, 1) == md.num_elements == 129
@test length(VX) == length(VY) == 82
mean(x) = sum(x) / length(x)
@test isapprox(sum(md.wJq), pi / 4, rtol=1 / domain.num_segments)
end
end

0 comments on commit 3fe0f35

Please sign in to comment.