diff --git a/test/main.h b/test/main.h index d9223aa78..0c0381f75 100644 --- a/test/main.h +++ b/test/main.h @@ -294,7 +294,14 @@ inline bool test_ei_isApproxOrLessThan(const float& a, const float& b) { return ei_isApproxOrLessThan(a, b, test_precision()); } inline bool test_ei_isApprox(const double& a, const double& b) -{ return ei_isApprox(a, b, test_precision()); } +{ + bool ret = ei_isApprox(a, b, test_precision()); + if (!ret) std::cerr + << std::endl << " actual = " << a + << std::endl << " expected = " << b << std::endl << std::endl; + return ret; +} + inline bool test_ei_isMuchSmallerThan(const double& a, const double& b) { return ei_isMuchSmallerThan(a, b, test_precision()); } inline bool test_ei_isApproxOrLessThan(const double& a, const double& b) @@ -311,7 +318,14 @@ inline bool test_ei_isMuchSmallerThan(const std::complex& a, const std:: { return ei_isMuchSmallerThan(a, b, test_precision >()); } inline bool test_ei_isApprox(const long double& a, const long double& b) -{ return ei_isApprox(a, b, test_precision()); } +{ + bool ret = ei_isApprox(a, b, test_precision()); + if (!ret) std::cerr + << std::endl << " actual = " << a + << std::endl << " expected = " << b << std::endl << std::endl; + return ret; +} + inline bool test_ei_isMuchSmallerThan(const long double& a, const long double& b) { return ei_isMuchSmallerThan(a, b, test_precision()); } inline bool test_ei_isApproxOrLessThan(const long double& a, const long double& b)