Skip to content

Commit

Permalink
[test] Imprecise Math.exp(1) in Java on Apple silicon macOS.
Browse files Browse the repository at this point in the history
  • Loading branch information
pfusik committed Jun 22, 2022
1 parent efec5b7 commit 3759a6a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion test/MathE.ci
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
}

0 comments on commit 3759a6a

Please sign in to comment.