added test cases

This commit is contained in:
Niels 2015-05-06 20:46:04 +02:00
parent 2cfc93fc76
commit bef256600c

View file

@ -8456,11 +8456,13 @@ TEST_CASE("regression tests")
SECTION("NAN value") SECTION("NAN value")
{ {
CHECK(json(NAN) == json()); CHECK(json(NAN) == json());
CHECK(json(static_cast<long double>(NAN)) == json());
} }
SECTION("infinity") SECTION("infinity")
{ {
CHECK(json(INFINITY) == json()); CHECK(json(INFINITY) == json());
CHECK(json(static_cast<long double>(INFINITY)) == json());
} }
} }
} }