mirror of
https://github.com/nlohmann/json.git
synced 2026-10-09 07:57:13 +00:00
removed unnecessary code (numbers must not begin with "+")
This commit is contained in:
1 parent
688cd49bdc
commit
85a30813c8
4 files changed
+5
-9
No files matched your search
@@ -9776,6 +9776,10 @@ TEST_CASE("parser class")
|
||||
CHECK_THROWS_AS(json::parser("-0e-:").parse(), std::invalid_argument);
|
||||
CHECK_THROWS_AS(json::parser("-0f").parse(), std::invalid_argument);
|
||||
|
||||
// numbers must not begin with "+"
|
||||
CHECK_THROWS_AS(json::parser("+1").parse(), std::invalid_argument);
|
||||
CHECK_THROWS_AS(json::parser("+0").parse(), std::invalid_argument);
|
||||
|
||||
CHECK_THROWS_WITH(json::parser("01").parse(),
|
||||
"parse error - unexpected number literal; expected end of input");
|
||||
CHECK_THROWS_WITH(json::parser("--1").parse(), "parse error - unexpected '-'");
|
||||
|
||||
Reference in new issue
Block a user