[Scummvm-git-logs] scummvm master -> edb93c4606e52a43b620abfe6b99dc74986714c2
dafioram
dafioram at gmail.com
Thu Apr 11 13:39:35 CEST 2019
This automated email contains information about 1 new commit which have been
pushed to the 'scummvm' repo located at https://github.com/scummvm/scummvm .
Summary:
edb93c4606 TESTS: Use Less than or equal to for math tests
Commit: edb93c4606e52a43b620abfe6b99dc74986714c2
https://github.com/scummvm/scummvm/commit/edb93c4606e52a43b620abfe6b99dc74986714c2
Author: David Fioramonti (dafioram at gmail.com)
Date: 2019-04-11T04:35:30-07:00
Commit Message:
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.
Changed paths:
test/common/math.h
diff --git a/test/common/math.h b/test/common/math.h
index 79c0052..d523213 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
More information about the Scummvm-git-logs
mailing list