mirror of
https://github.com/nlohmann/json.git
synced 2026-10-07 15:07:13 +00:00
Fixed escaped quotes
This commit is contained in:
1 parent
4647401030
commit
fa0ee9c927
2 files changed
+38
-25
No files matched your search
@@ -1621,6 +1621,7 @@ TEST_CASE("Parser")
|
||||
// escape characters
|
||||
CHECK_THROWS_AS(json::parse("\"\\\""), std::invalid_argument);
|
||||
CHECK_NOTHROW(json::parse("\"\\\"\""));
|
||||
CHECK_NOTHROW(json::parse("\"\\\\\""));
|
||||
|
||||
// quotes must be closed
|
||||
CHECK_THROWS_AS(json::parse("\""), std::invalid_argument);
|
||||
|
||||
Reference in new issue
Block a user