escaped quote notation

This commit is contained in:
freestrings
2019-06-17 15:42:46 +09:00
parent 909c851dcc
commit 51deec66d0
3 changed files with 69 additions and 11 deletions

View File

@@ -356,4 +356,12 @@ fn empty_range() {
setup();
select_and_then_compare("$[:]", json!(["first", "second"]), json!(["first", "second"]));
}
#[test]
fn quote() {
setup();
select_and_then_compare(r#"$['single\'quote']"#, json!({"single'quote":"value"}), json!(["value"]));
select_and_then_compare(r#"$["double\"quote"]"#, json!({"double\"quote":"value"}), json!(["value"]));
}