mirror of
https://github.com/nlohmann/json.git
synced 2025-07-29 23:01:16 +03:00
added test cases
This commit is contained in:
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user