From cbdecc588a6a854b480b931ccc20977699f895ef Mon Sep 17 00:00:00 2001 From: Sameer Agarwal Date: Thu, 9 Jul 2015 21:20:40 -0700 Subject: [PATCH] Actually fix the rawhide tolerance bug. And undo the last two botched CLs. Thanks to Chris Sweeney and Taylor Braun Jones for saving my bacon. I will do appropriate penance to repend for my sins. Change-Id: I14de958e651f85e4c1741fba2cb46ffe7e873346 --- internal/ceres/polynomial_test.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ceres/polynomial_test.cc b/internal/ceres/polynomial_test.cc index f2fd19e85..d7026edfe 100644 --- a/internal/ceres/polynomial_test.cc +++ b/internal/ceres/polynomial_test.cc @@ -167,7 +167,7 @@ TEST(Polynomial, QuadraticPolynomialWithTwoNegativeRootsWorks) { TEST(Polynomial, QuadraticPolynomialWithCloseRootsWorks) { const double roots[2] = { 42.42, 42.43 }; - RunPolynomialTestRealRoots(roots, true, false, 2 * kEpsilonLoose); + RunPolynomialTestRealRoots(roots, true, false, kEpsilonLoose); } TEST(Polynomial, QuadraticPolynomialWithComplexRootsWorks) { @@ -200,7 +200,7 @@ TEST(Polynomial, QuarticPolynomialWithTwoClustersOfCloseRootsWorks) { TEST(Polynomial, QuarticPolynomialWithTwoZeroRootsWorks) { const double roots[4] = { -42.42, 0.0, 0.0, 42.42 }; - RunPolynomialTestRealRoots(roots, true, true, kEpsilonLoose); + RunPolynomialTestRealRoots(roots, true, true, 2 * kEpsilonLoose); } TEST(Polynomial, QuarticMonomialWorks) {