Skip to content

Commit fa4a2d3

Browse files
committed
float parsing: also disable {+,-}infinity testing on Windows
1 parent 7a1abd0 commit fa4a2d3

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

testsuite/tests/lib-scanf/tscanf.ml

+10-8
Original file line numberDiff line numberDiff line change
@@ -148,11 +148,12 @@ let test5 () =
148148
roundtrip 0X123.456 &&
149149
roundtrip 0X123456789ABCDE. &&
150150
roundtrip epsilon_float &&
151-
(* "nan" parsing fails on Windows? *)
152-
(Sys.win32 || roundtrip nan) &&
153-
roundtrip infinity &&
154-
roundtrip neg_infinity &&
155151
roundtrip (4. *. atan 1.) &&
152+
(Sys.win32 ||
153+
(* nan/infinity parsing fails on Windows? *)
154+
(roundtrip nan &&
155+
roundtrip infinity &&
156+
roundtrip neg_infinity)) &&
156157
true
157158
end
158159
&&
@@ -171,11 +172,12 @@ let test5 () =
171172
roundtrip 0X123.456 &&
172173
roundtrip 0X123456789ABCDE. &&
173174
roundtrip epsilon_float &&
174-
(* "nan" parsing fails on Windows? *)
175-
(Sys.win32 || roundtrip nan) &&
176-
roundtrip infinity &&
177-
roundtrip neg_infinity &&
178175
roundtrip (4. *. atan 1.) &&
176+
(Sys.win32 ||
177+
(* nan/infinity parsing fails on Windows? *)
178+
(roundtrip nan &&
179+
roundtrip infinity &&
180+
roundtrip neg_infinity)) &&
179181
true
180182
end
181183
;;

0 commit comments

Comments
 (0)