mirror of
https://github.com/nlohmann/json.git
synced 2026-05-23 14:45:36 +00:00
Fixed escaped quotes
This commit is contained in:
@@ -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