Improved the array unit test - internal::isApprox needs to use the same precision as VERIFY_IS_NOT_APPROX.

Removed debug code from test_isApprox.
This commit is contained in:
Hauke Heibel
2010-12-16 18:53:02 +01:00
parent 2d0dfe5d60
commit 83e3c4582f
2 changed files with 15 additions and 22 deletions

View File

@@ -312,15 +312,8 @@ inline bool test_isMuchSmallerThan(const float& a, const float& b)
{ return internal::isMuchSmallerThan(a, b, test_precision<float>()); }
inline bool test_isApproxOrLessThan(const float& a, const float& b)
{ return internal::isApproxOrLessThan(a, b, test_precision<float>()); }
inline bool test_isApprox(const double& a, const double& b)
{
bool ret = internal::isApprox(a, b, test_precision<double>());
if (!ret) std::cerr
<< std::endl << " actual = " << a
<< std::endl << " expected = " << b << std::endl << std::endl;
return ret;
}
{ return internal::isApprox(a, b, test_precision<double>()); }
inline bool test_isMuchSmallerThan(const double& a, const double& b)
{ return internal::isMuchSmallerThan(a, b, test_precision<double>()); }