Skip to content

Commit

Permalink
Update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeingold committed Dec 2, 2024
1 parent 8a6bd87 commit 4365973
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions test/utils.jl
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,12 @@
end

@testitem "DifferentiationMethod" setup=[Setup] begin
using MeshIntegrals: _default_method

# Test geometries
sphere = Sphere(Point(0, 0, 0), 1.0)
triangle = Triangle(Point(0, 0, 0), Point(0, 1, 0), Point(1, 0, 0))
using MeshIntegrals: _default_diff_method

# _default_method
@test _default_method(Meshes.Sphere) isa FiniteDifference
@test _default_method(sphere) isa FiniteDifference
sphere = Sphere(Point(0, 0, 0), 1.0)
@test _default_diff_method(Meshes.Sphere) isa FiniteDifference
@test _default_diff_method(sphere) isa FiniteDifference

# FiniteDifference
@test FiniteDifference().ε 1e-6
Expand Down

0 comments on commit 4365973

Please sign in to comment.