From d97330ff3ba555047cb4ea1e46fbfce40ab3af32 Mon Sep 17 00:00:00 2001 From: Greg Dennis Date: Thu, 16 May 2024 14:26:25 +1200 Subject: [PATCH] update documents to actually query something --- tests/filter.json | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/tests/filter.json b/tests/filter.json index a16ff6a..4b7f5fe 100644 --- a/tests/filter.json +++ b/tests/filter.json @@ -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"] } ] }