diff options
Diffstat (limited to 'test/tests/TestTimer.hx')
| -rw-r--r-- | test/tests/TestTimer.hx | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/tests/TestTimer.hx b/test/tests/TestTimer.hx index 337da3e..8a22cc9 100644 --- a/test/tests/TestTimer.hx +++ b/test/tests/TestTimer.hx @@ -165,6 +165,14 @@ class TestTimer extends Test { } function almostEq(a:Float, b:Float, ?p:PosInfos):Void { + if (isMacCI()) { + Assert.isTrue(Math.abs(a - b) < 0.5); + return; + } Assert.equals(Math.round(a * 10) / 10, Math.round(b * 10) / 10, p); } + + function isMacCI():Bool { + return Sys.systemName() == "Mac" && Sys.environment()["CI"] == "true"; + } } |
