aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/common/math.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/common/math.h b/test/common/math.h
index 79c005206d..d523213f81 100644
--- a/test/common/math.h
+++ b/test/common/math.h
@@ -6,7 +6,7 @@
// aren't further apart from each other than z.
#define TS_ASSERT_ALMOST_EQUALS(x, y, z) \
- TS_ASSERT_LESS_THAN(((x) - (y)) >= 0 ? (x) - (y) : (y) - (x), z)
+ TS_ASSERT_LESS_THAN_EQUALS(((x) - (y)) >= 0 ? (x) - (y) : (y) - (x), z)
const float MAX_ERROR = 0.000001;
class MathTestSuite : public CxxTest::TestSuite