mirror of
https://github.com/nlohmann/json.git
synced 2024-11-24 06:29:03 +08:00
✅ improved test coverage
This commit is contained in:
parent
c8191c8172
commit
b84705d557
@ -101,6 +101,7 @@ TEST_CASE("parser class")
|
||||
CHECK_THROWS_WITH(json::parser("\"\b\"").parse(), "parse error - unexpected '\"'");
|
||||
// improve code coverage
|
||||
CHECK_THROWS_AS(json::parser("\uFF01").parse(), std::invalid_argument);
|
||||
CHECK_THROWS_AS(json::parser("[-4:1,]").parse(), std::invalid_argument);
|
||||
// unescaped control characters
|
||||
CHECK_THROWS_AS(json::parser("\"\x00\"").parse(), std::invalid_argument);
|
||||
CHECK_THROWS_AS(json::parser("\"\x01\"").parse(), std::invalid_argument);
|
||||
|
Loading…
Reference in New Issue
Block a user