aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBruce Mitchener <bruce.mitchener@gmail.com>2014-01-13 16:40:05 +0700
committerBruce Mitchener <bruce.mitchener@gmail.com>2014-01-14 02:21:11 +0700
commit75a6be63a37d68295c0e6da9f9e77d17c8cc7e91 (patch)
tree99d4fcc76b431cffe29f5d7b24268c566a582cf3
parentcd21e58d9e4bda0365696ed7873f7520f8ebf20b (diff)
Another test for negative zero and hex floats.
-rw-r--r--tests/test_core.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_core.py b/tests/test_core.py
index 8b6d4fba..07de8a7f 100644
--- a/tests/test_core.py
+++ b/tests/test_core.py
@@ -3585,6 +3585,7 @@ ok
printf("%g\n", strtod("123e-250", &endptr));
printf("%g\n", strtod("123e-450", &endptr));
printf("%g\n", strtod("0x6", &endptr));
+ printf("%g\n", strtod("-0x0p+0", &endptr));
char str[] = " 12.34e56end";
printf("%g\n", strtod(str, &endptr));
@@ -3618,6 +3619,7 @@ ok
1.23e-248
0
6
+ -0
1.234e+57
10
inf