aboutsummaryrefslogtreecommitdiffstats
path: root/test/tests/TestTimer.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-09-07 21:46:55 +0300
committerRblSb <msrblsb@gmail.com>2021-09-08 19:50:45 +0300
commit935505a515d05a65907254fe1d822c41fb07154f (patch)
tree7663affdfdd3f59a4283a91539c4a3d034f3fb87 /test/tests/TestTimer.hx
parent9f819388fbcdd07b6dc85fcf87fd2d6661b61bc3 (diff)
Add CI
Diffstat (limited to 'test/tests/TestTimer.hx')
-rw-r--r--test/tests/TestTimer.hx8
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";
+ }
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage