From f57711ca9bbf02f0704ed5a8db69a486289bbc43 Mon Sep 17 00:00:00 2001 From: cmercier Date: Mon, 25 May 2020 17:40:19 +0200 Subject: [PATCH] Replace REQUIRE_CLOSE() instead of REQUIRE_CLOSE(). --- src/mlpack/tests/bayesian_linear_regression_test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mlpack/tests/bayesian_linear_regression_test.cpp b/src/mlpack/tests/bayesian_linear_regression_test.cpp index 53d9b565e8..02f4476052 100644 --- a/src/mlpack/tests/bayesian_linear_regression_test.cpp +++ b/src/mlpack/tests/bayesian_linear_regression_test.cpp @@ -94,8 +94,8 @@ BOOST_AUTO_TEST_CASE(TestCenterDataTrueScaleDataTrue) double yMean = arma::mean(y); BOOST_REQUIRE_SMALL((double) abs(sum(estimator.DataOffset() - xMean)), 1e-6); - BOOST_REQUIRE_SMALL((double) abs(estimator.ResponsesOffset() - yMean), 1e-6); BOOST_REQUIRE_SMALL((double) abs(sum(estimator.DataScale() - xStd)), 1e-6); + BOOST_REQUIRE_CLOSE(estimator.ResponsesOffset(), yMean, 1e-6); } // Check that Train() does not fail with two colinear vectors.