From 3759a6a0fee625fffe4802fec735937895b18ce7 Mon Sep 17 00:00:00 2001 From: Piotr Fusik Date: Wed, 22 Jun 2022 21:30:01 +0200 Subject: [PATCH] [test] Imprecise Math.exp(1) in Java on Apple silicon macOS. --- test/MathE.ci | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/MathE.ci b/test/MathE.ci index 17050664..d5a91af2 100644 --- a/test/MathE.ci +++ b/test/MathE.ci @@ -3,6 +3,8 @@ public static class Test public static bool Run() { double e = Math.E; //FAIL: cl if no double support - return e > 2.71 && e < 2.72 && Math.Exp(1) == e && Math.Log(e) == 1; //FAIL: swift cl TODO + return e > 2.71 && e < 2.72 + && (Math.Exp(1) == e || Math.Exp(1) == 2.7182818284590455 /* java 18.0.1.1 on Apple M1 */) //FAIL: swift cl TODO + && Math.Log(e) == 1; } }