Skip to content

Commit 75a6be6

Browse files
Another test for negative zero and hex floats.
1 parent cd21e58 commit 75a6be6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

tests/test_core.py

+2
Original file line numberDiff line numberDiff line change
@@ -3585,6 +3585,7 @@ def test_strtod(self):
35853585
printf("%g\n", strtod("123e-250", &endptr));
35863586
printf("%g\n", strtod("123e-450", &endptr));
35873587
printf("%g\n", strtod("0x6", &endptr));
3588+
printf("%g\n", strtod("-0x0p+0", &endptr));
35883589
35893590
char str[] = " 12.34e56end";
35903591
printf("%g\n", strtod(str, &endptr));
@@ -3618,6 +3619,7 @@ def test_strtod(self):
36183619
1.23e-248
36193620
0
36203621
6
3622+
-0
36213623
1.234e+57
36223624
10
36233625
inf

0 commit comments

Comments
 (0)