Skip to content

Commit

Permalink
fix test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
hhugo committed Sep 27, 2021
1 parent 63a719b commit 4fa155b
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion compiler/tests-jsoo/test_floats.ml
Expand Up @@ -70,7 +70,13 @@ let%expect_test "acosh" =
[%expect {| 1.316958 |}]

let%expect_test "asinh" =
let p x = print (Float.asinh x) in
let p x =
let r = Float.asinh x in
match Float.classify_float r with
(* asinh(0) returns (-0) on windows *)
| FP_zero -> print 0.
| _ -> print r
in
p 1.0;
[%expect {| 0.881374 |}];
p 0.0;
Expand Down

0 comments on commit 4fa155b

Please sign in to comment.