removed unnecessary code (numbers must not begin with "+")
This commit is contained in:
parent
688cd49bdc
commit
85a30813c8
4 changed files with 5 additions and 9 deletions
|
@ -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 '-'");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue