From 9b993aed00a12aed6d13a233fa9a78c4241de97e Mon Sep 17 00:00:00 2001 From: David Fioramonti Date: Thu, 11 Apr 2019 15:59:13 -0700 Subject: TESTS: reduce precision for math tests I can't reproduce any precision issues on my machine so this is only a guess. --- test/common/math.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/common/math.h b/test/common/math.h index d523213f81..7ed6a87ee4 100644 --- a/test/common/math.h +++ b/test/common/math.h @@ -8,7 +8,7 @@ #define TS_ASSERT_ALMOST_EQUALS(x, y, z) \ TS_ASSERT_LESS_THAN_EQUALS(((x) - (y)) >= 0 ? (x) - (y) : (y) - (x), z) -const float MAX_ERROR = 0.000001; +const float MAX_ERROR = 0.00001; class MathTestSuite : public CxxTest::TestSuite { public: -- cgit v1.2.3