1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-31 10:24:23 +03:00

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());
} }
} }
} }