mirror of
https://github.com/nlohmann/json
synced 2024-11-23 12:30:06 +00:00
added test cases
This commit is contained in:
parent
2cfc93fc76
commit
bef256600c
@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user