Skip to content

Commit

Permalink
update documents to actually query something
Browse files Browse the repository at this point in the history
  • Loading branch information
gregsdennis committed May 16, 2024
1 parent a357af1 commit d97330f
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions tests/filter.json
Original file line number Diff line number Diff line change
Expand Up @@ -936,26 +936,26 @@
{
"name": "string literal, single quote in double quotes",
"selector" : "$[?@ == \"quoted' literal\"]",
"document" : [{"a": 1}],
"result": []
"document" : ["quoted' literal", "a", "quoted\\' literal"],
"result": ["quoted' literal"]
},
{
"name": "string literal, double quote in single quotes",
"selector" : "$[?@ == 'quoted\" literal']",
"document" : [{"a": 1}],
"result": []
"document" : ["quoted\" literal", "a", "quoted\\\" literal", "'quoted\" literal'"],
"result": ["quoted\" literal"]
},
{
"name": "string literal, escaped single quote in single quotes",
"selector" : "$[?@ == 'quoted\\' literal']",
"document" : [{"a": 1}],
"result": []
"document" : ["quoted' literal", "a", "quoted\\' literal", "'quoted\" literal'"],
"result": ["quoted' literal"]
},
{
"name": "string literal, escaped double quote in double quotes",
"selector" : "$[?@ == \"quoted\\\" literal\"]",
"document" : [{"a": 1}],
"result": []
"document" : ["quoted\" literal", "a", "quoted\\\" literal", "'quoted\" literal'"],
"result": ["quoted\" literal"]
}
]
}

0 comments on commit d97330f

Please sign in to comment.