Skip to content

Commit 1549195

Browse files
committed
Add explicit rtol's, reduce dims to speed up RegularGrid tests
1 parent 748b850 commit 1549195

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

test/combinations.jl

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -289,7 +289,7 @@ end
289289

290290
# Package and run tests
291291
testable = TestableGeometry(integrand, grid, solution)
292-
runtests(testable)
292+
runtests(testable; rtol = 1e-6)
293293
end
294294

295295
@testitem "Meshes.Circle" setup=[Combinations] begin
@@ -651,21 +651,21 @@ end
651651
@testitem "Meshes.RegularGrid" setup=[Combinations] begin
652652
# Geometry
653653
a = π
654-
start = Point(0, 0, 0)
655-
finish = Point(a, a, a)
656-
dims = (4, 4, 4)
654+
start = Point(0, 0)
655+
finish = Point(a, a)
656+
dims = (4, 4)
657657
grid = RegularGrid(start, finish, dims = dims)
658658

659659
# Integrand & Solution
660660
function integrand(p::Meshes.Point)
661-
x₁, x₂, x₃ = ustrip.(to(p))
662-
((a^2 - x₁^2) + (a^2 - x₂^2) + (a^2 - x₃^2)) * u"A"
661+
x₁, x₂ = ustrip.(to(p))
662+
((a^2 - x₁^2) + (a^2 - x₂^2)) * u"A"
663663
end
664-
solution = 3a^2 ** a^2 / 4) * u"A*m^3"
664+
solution = 2a ** a^2 / 4) * u"A*m^2"
665665

666666
# Package and run tests
667667
testable = TestableGeometry(integrand, grid, solution)
668-
runtests(testable)
668+
runtests(testable; rtol = 1e-6)
669669
end
670670

671671
@testitem "Meshes.Ring" setup=[Combinations] begin

0 commit comments

Comments
 (0)