1
0
mirror of https://github.com/nlohmann/json.git synced 2025-07-28 12:02:00 +03:00

fixed string definition

This commit is contained in:
Niels
2015-05-09 15:09:52 +02:00
parent 1f381d496d
commit 2b4e461702
3 changed files with 8 additions and 21 deletions

View File

@ -7384,6 +7384,8 @@ TEST_CASE("parser class")
// error: newline in string
CHECK_THROWS_AS(json::parser("\"\n\"").parse(), std::invalid_argument);
CHECK_THROWS_AS(json::parser("\"\r\"").parse(), std::invalid_argument);
// error: backspace in string
CHECK_THROWS_AS(json::parser("\"\b\"").parse(), std::invalid_argument);
}
SECTION("escaped")