1
0
mirror of https://github.com/nlohmann/json synced 2024-11-23 12:30:06 +00: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")
{
CHECK(json(NAN) == json());
CHECK(json(static_cast<long double>(NAN)) == json());
}
SECTION("infinity")
{
CHECK(json(INFINITY) == json());
CHECK(json(static_cast<long double>(INFINITY)) == json());
}
}
}