From f33bcd54888956097356d41a68fed6e66f81ca84 Mon Sep 17 00:00:00 2001 From: jzmaddock Date: Wed, 21 Feb 2018 19:33:01 +0000 Subject: [PATCH] Chebyshev expected error rates are too strict - relax them a little. [CI SKIP] --- test/chebyshev_test.cpp | 2 +- test/chebyshev_transform_test.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/test/chebyshev_test.cpp b/test/chebyshev_test.cpp index c06f7a6ad..6a99b1e29 100644 --- a/test/chebyshev_test.cpp +++ b/test/chebyshev_test.cpp @@ -29,7 +29,7 @@ void test_polynomials() std::cout << "Testing explicit polynomial representations of the Chebyshev polynomials on type " << boost::typeindex::type_id().pretty_name() << "\n"; Real x = -2; - Real tol = 100*std::numeric_limits::epsilon(); + Real tol = 400*std::numeric_limits::epsilon(); if (tol > std::numeric_limits::epsilon()) tol *= 10; // float results have much larger error rates. while (x < 2) diff --git a/test/chebyshev_transform_test.cpp b/test/chebyshev_transform_test.cpp index 682a53ef6..9af222683 100644 --- a/test/chebyshev_transform_test.cpp +++ b/test/chebyshev_transform_test.cpp @@ -165,7 +165,7 @@ void test_atap_examples() { BOOST_CHECK_CLOSE_FRACTION(f1(x), cheb1(x), 1.3e-5); } - BOOST_CHECK_CLOSE_FRACTION(f2(x), cheb2(x), 4e-3); + BOOST_CHECK_CLOSE_FRACTION(f2(x), cheb2(x), 5e-3); //BOOST_CHECK_CLOSE_FRACTION(f3(x), cheb3(x), 100*tol); x += static_cast(1)/static_cast(1 << 7); }