From bef256600c9b532f45848e6e4ca31c801b0b2f95 Mon Sep 17 00:00:00 2001 From: Niels Date: Wed, 6 May 2015 20:46:04 +0200 Subject: [PATCH] added test cases --- test/unit.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/unit.cpp b/test/unit.cpp index 236e1f93..7644c904 100644 --- a/test/unit.cpp +++ b/test/unit.cpp @@ -8456,11 +8456,13 @@ TEST_CASE("regression tests") SECTION("NAN value") { CHECK(json(NAN) == json()); + CHECK(json(static_cast(NAN)) == json()); } SECTION("infinity") { CHECK(json(INFINITY) == json()); + CHECK(json(static_cast(INFINITY)) == json()); } } }