Fixed escaped quotes
This commit is contained in:
parent
4647401030
commit
fa0ee9c927
2 changed files with 38 additions and 25 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue