diff options
author | Milo Yip <miloyip@gmail.com> | 2014-07-30 20:02:02 +0400 |
---|---|---|
committer | Milo Yip <miloyip@gmail.com> | 2014-07-30 20:02:02 +0400 |
commit | 54566062329fc273a8dc3239c5168d65ede69437 (patch) | |
tree | 9d95311d101f473c9d7cc8e6e2646a41ceca6764 /test | |
parent | 808d362b884847567233e95afb33315d9ec81a72 (diff) |
Add a "must underflow" case as suggested by @pah
Diffstat (limited to 'test')
-rw-r--r-- | test/unittest/readertest.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/unittest/readertest.cpp b/test/unittest/readertest.cpp index a933981b..afe0cd7b 100644 --- a/test/unittest/readertest.cpp +++ b/test/unittest/readertest.cpp @@ -138,6 +138,7 @@ TEST(Reader, ParseNumberHandler) { TEST_DOUBLE("-1.79769e+308", -1.79769e+308);
TEST_DOUBLE("-2.22507e-308", -2.22507e-308);
TEST_DOUBLE("4.9406564584124654e-324", 4.9406564584124654e-324); // minimum denormal
+ TEST_DOUBLE("1e-10000", 0.0); // must underflow
TEST_DOUBLE("18446744073709551616", 18446744073709551616.0); // 2^64 (max of uint64_t + 1, force to use double)
TEST_DOUBLE("-9223372036854775809", -9223372036854775809.0); // -2^63 - 1(min of int64_t + 1, force to use double)
|