From 791c9d1599f7c578e63dcdce0f825467783307f9 Mon Sep 17 00:00:00 2001 From: Ray Speth Date: Mon, 25 Jul 2016 16:13:59 -0400 Subject: [PATCH] [Test] Relax tolerance on Polyfit.exact_fit test Done to avoid spurious test failures on some platforms. --- test/general/test_numerics.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/general/test_numerics.cpp b/test/general/test_numerics.cpp index 9eea78a33..133afa414 100644 --- a/test/general/test_numerics.cpp +++ b/test/general/test_numerics.cpp @@ -22,7 +22,7 @@ TEST(Polyfit, exact_fit) vector_fp y{-1.1*i, cos(i), pow(-1,i), 3.2/(i+1), 0.1*i*i, sin(i)}; polyfit(6, 5, x.data(), y.data(), w.data(), p.data()); for (size_t j = 0; j < 6; j++) { - EXPECT_NEAR(polyval(p, x[j]), y[j], 1e-12); + EXPECT_NEAR(polyval(p, x[j]), y[j], 1e-10); } } }