Skip to content

Commit

Permalink
Test comparison of empty node list (#84)
Browse files Browse the repository at this point in the history
  • Loading branch information
jg-rp authored Jun 24, 2024
1 parent 9dbb98b commit 44e4468
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions tests/filter.json
Original file line number Diff line number Diff line change
Expand Up @@ -882,6 +882,23 @@
{"a": null}
]
},
{
"name": "equals, empty node list and empty node list",
"selector": "$[[email protected] == @.b]",
"document": [{"a": 1}, {"b": 2}, {"c": 3}],
"result": [
{"c": 3}
]
},
{
"name": "equals, empty node list and special nothing",
"selector": "$[[email protected] == length(@.b)]",
"document": [{"a": 1}, {"b": 2}, {"c": 3}],
"result": [
{"b": 2},
{"c": 3}
]
},
{
"name": "object data",
"selector" : "$[?@<3]",
Expand Down

0 comments on commit 44e4468

Please sign in to comment.