From 63c747218bf0b94c2d6b478cacfcb2864546b1a5 Mon Sep 17 00:00:00 2001 From: drgler Date: Thu, 3 Sep 2015 22:19:22 +0200 Subject: [PATCH] Floating-point NaN or Infinity values should be allowed as a feature #209 Introduce 'allowSpecialFloats' for readers and 'useSpecialFloats' for writers, use consistent macro snprintf definition for writers and readers, provide new unit tests for #209 --- src/test_lib_json/main.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test_lib_json/main.cpp b/src/test_lib_json/main.cpp index 08cf104..ef93479 100644 --- a/src/test_lib_json/main.cpp +++ b/src/test_lib_json/main.cpp @@ -2312,6 +2312,7 @@ JSONTEST_FIXTURE(CharReaderAllowSpecialFloatsTest, issue209) { JSONTEST_ASSERT_EQUAL(std::numeric_limits::infinity(), root["posInf"].asDouble()); JSONTEST_ASSERT_EQUAL(-std::numeric_limits::infinity(), root["NegInf"].asDouble()); } + delete reader; } struct BuilderTest : JsonTest::TestCase {};