Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/miloyip/rapidjson.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMilo Yip <miloyip@gmail.com>2014-07-30 20:02:02 +0400
committerMilo Yip <miloyip@gmail.com>2014-07-30 20:02:02 +0400
commit54566062329fc273a8dc3239c5168d65ede69437 (patch)
tree9d95311d101f473c9d7cc8e6e2646a41ceca6764 /test
parent808d362b884847567233e95afb33315d9ec81a72 (diff)
Add a "must underflow" case as suggested by @pah
Diffstat (limited to 'test')
-rw-r--r--test/unittest/readertest.cpp1
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)