mirror of
https://github.com/nlohmann/json.git
synced 2026-02-20 02:16:24 +00:00
fixed string definition
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user