mirror of
https://github.com/nlohmann/json.git
synced 2026-10-19 12:38:12 +00:00
💄 fixed indentation
This commit is contained in:
2 files changed
+2
-2
No files matched your search
@@ -279,7 +279,7 @@ TEST_CASE("parser class")
|
|||||||
// overflows during parsing yield an exception
|
// overflows during parsing yield an exception
|
||||||
CHECK_THROWS_AS(json::parser("1.18973e+4932").parse() == json(), json::out_of_range);
|
CHECK_THROWS_AS(json::parser("1.18973e+4932").parse() == json(), json::out_of_range);
|
||||||
CHECK_THROWS_WITH(json::parser("1.18973e+4932").parse() == json(),
|
CHECK_THROWS_WITH(json::parser("1.18973e+4932").parse() == json(),
|
||||||
"[json.exception.out_of_range.406] number overflow parsing '1.18973e+4932'");
|
"[json.exception.out_of_range.406] number overflow parsing '1.18973e+4932'");
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTION("invalid numbers")
|
SECTION("invalid numbers")
|
||||||
|
|||||||
@@ -592,7 +592,7 @@ TEST_CASE("regression tests")
|
|||||||
{
|
{
|
||||||
CHECK_THROWS_AS(json::parse("22e2222"), json::out_of_range);
|
CHECK_THROWS_AS(json::parse("22e2222"), json::out_of_range);
|
||||||
CHECK_THROWS_WITH(json::parse("22e2222"),
|
CHECK_THROWS_WITH(json::parse("22e2222"),
|
||||||
"[json.exception.out_of_range.406] number overflow parsing '22e2222'");
|
"[json.exception.out_of_range.406] number overflow parsing '22e2222'");
|
||||||
}
|
}
|
||||||
|
|
||||||
SECTION("issue #366 - json::parse on failed stream gets stuck")
|
SECTION("issue #366 - json::parse on failed stream gets stuck")
|
||||||
|
|||||||
Reference in new issue
Block a user