aboutsummaryrefslogtreecommitdiffhomepage
path: root/test/main.h
diff options
context:
space:
mode:
authorGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-12-16 18:53:02 +0100
committerGravatar Hauke Heibel <hauke.heibel@gmail.com>2010-12-16 18:53:02 +0100
commit83e3c4582f606e6635eae6498ad88b8c66e7695b (patch)
tree1b15ecb5165bd93d600972ae6c4c9761ef629f7e /test/main.h
parent2d0dfe5d60befb92264a22c7ab21593e953ae7d8 (diff)
Improved the array unit test - internal::isApprox needs to use the same precision as VERIFY_IS_NOT_APPROX.
Removed debug code from test_isApprox.
Diffstat (limited to 'test/main.h')
-rw-r--r--test/main.h9
1 files changed, 1 insertions, 8 deletions
diff --git a/test/main.h b/test/main.h
index ff998af97..461c2500d 100644
--- a/test/main.h
+++ b/test/main.h
@@ -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>()); }