From 988591b7bf61d40272a1fc0bee5bd4dd517e0f0e Mon Sep 17 00:00:00 2001 From: Martin Kronbichler Date: Thu, 18 Jul 2019 15:22:42 +0200 Subject: [PATCH] Make a test more robust by avoiding points directly at the periodicity boundary --- tests/manifold/elliptical_manifold_02.cc | 6 +++--- tests/manifold/elliptical_manifold_02.output | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/tests/manifold/elliptical_manifold_02.cc b/tests/manifold/elliptical_manifold_02.cc index e6b99121e5..0e71ef8d37 100644 --- a/tests/manifold/elliptical_manifold_02.cc +++ b/tests/manifold/elliptical_manifold_02.cc @@ -105,9 +105,9 @@ test() // test on a rotated manifold const Tensor<1, 2> axis({1.0, -1.0}); const double eccentricity(0.1); - local_test(axis, eccentricity, Point<2>(1.1, 0.0)); - local_test(axis, eccentricity, Point<2>(2.0, 0.0)); - local_test(axis, eccentricity, Point<2>(3.0, 0.0)); + local_test(axis, eccentricity, Point<2>(1.1, 0.25 * TOLERANCE)); + local_test(axis, eccentricity, Point<2>(2.0, 0.25 * TOLERANCE)); + local_test(axis, eccentricity, Point<2>(3.0, 0.25 * TOLERANCE)); local_test(axis, eccentricity, Point<2>(4.0, 2.0)); } } diff --git a/tests/manifold/elliptical_manifold_02.output b/tests/manifold/elliptical_manifold_02.output index 0cf687080f..abe9a80283 100644 --- a/tests/manifold/elliptical_manifold_02.output +++ b/tests/manifold/elliptical_manifold_02.output @@ -11,13 +11,13 @@ DEAL::OK DEAL::4.00000 2.00000 -> -16.6459 36.1896 DEAL::4.00000 2.00000 <- -16.6459 36.1896 DEAL::OK -DEAL::1.10000 0.00000 -> 7.77817 -7.77817 +DEAL::1.10000 2.50000e-15 -> 7.77817 -7.77817 DEAL::1.10000 0.00000 <- 7.77817 -7.77817 DEAL::OK -DEAL::2.00000 0.00000 -> 14.1421 -14.1421 +DEAL::2.00000 2.50000e-15 -> 14.1421 -14.1421 DEAL::2.00000 0.00000 <- 14.1421 -14.1421 DEAL::OK -DEAL::3.00000 0.00000 -> 21.2132 -21.2132 +DEAL::3.00000 2.50000e-15 -> 21.2132 -21.2132 DEAL::3.00000 0.00000 <- 21.2132 -21.2132 DEAL::OK DEAL::4.00000 2.00000 -> 13.8195 37.3603 -- 2.39.5