diff options
author | David Fioramonti | 2019-04-11 04:35:27 -0700 |
---|---|---|
committer | David Fioramonti | 2019-04-11 04:35:30 -0700 |
commit | edb93c4606e52a43b620abfe6b99dc74986714c2 (patch) | |
tree | 838cb6f2b3b5d68e5c7739396aa3abde896f7c75 | |
parent | ce8227323b3fa658cdfb2f1e3de9b2fbca783c5a (diff) | |
download | scummvm-rg350-edb93c4606e52a43b620abfe6b99dc74986714c2.tar.gz scummvm-rg350-edb93c4606e52a43b620abfe6b99dc74986714c2.tar.bz2 scummvm-rg350-edb93c4606e52a43b620abfe6b99dc74986714c2.zip |
TESTS: Use Less than or equal to for math tests
This should fix debian build.
Its seems the precision that debian is using is rounding the
error delta to zero so that the actual error is not less than
this.
-rw-r--r-- | test/common/math.h | 2 |
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 |