mirror of
https://github.com/nlohmann/json.git
synced 2026-10-07 15:07:13 +00:00
fixed string definition
This commit is contained in:
1 parent
1f381d496d
commit
2b4e461702
3 files changed
+8
-21
No files matched your search
@@ -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