Commit bef25660 authored by Niels's avatar Niels

added test cases

parent 2cfc93fc
...@@ -8456,11 +8456,13 @@ TEST_CASE("regression tests") ...@@ -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());
} }
} }
} }
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment