diff --git a/tests/filter.json b/tests/filter.json index 9491103..9edeb4d 100644 --- a/tests/filter.json +++ b/tests/filter.json @@ -407,6 +407,23 @@ {"a":"c", "d": "f"} ] }, + { + "name": "exists and exists, data false", + "selector" : "$[?@.a&&@.b]", + "document" : [{"a": false, "b": false}, {"b": false}, {"c": false}], + "result": [ + {"a": false, "b": false} + ] + }, + { + "name": "exists or exists, data false", + "selector" : "$[?@.a||@.b]", + "document" : [{"a": false, "b": false}, {"b": false}, {"c": false}], + "result": [ + {"a": false, "b": false}, + {"b": false} + ] + }, { "name": "and", "selector" : "$[?@.a>0&&@.a<10]",