From d8a51bf2a12e6f11d62635ae8b06267096e4cc36 Mon Sep 17 00:00:00 2001 From: miloyip Date: Thu, 28 Aug 2014 23:03:06 +0800 Subject: [PATCH] Add test case --- test/unittest/readertest.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/test/unittest/readertest.cpp b/test/unittest/readertest.cpp index 09560d8..caacc66 100644 --- a/test/unittest/readertest.cpp +++ b/test/unittest/readertest.cpp @@ -160,6 +160,7 @@ TEST(Reader, ParseNumberHandler) { 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) + TEST_DOUBLE("0.9868011474609375", 0.9868011474609375); // https://github.com/miloyip/rapidjson/issues/120 { char n1e308[310]; // '1' followed by 308 '0'