Skip to content

Commit 7f1dba4

Browse files
committed
Add test filter selector followed by child selector that selects multiple elements (#96)
1 parent def200f commit 7f1dba4

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

tests/filter.json

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1924,6 +1924,20 @@
19241924
"$[0]['b']['x']"
19251925
]
19261926
},
1927+
{
1928+
"name": "followed by child segment that selects multiple elements",
1929+
"selector": "$[[email protected]=='_']['x','y']",
1930+
"document": [
1931+
{
1932+
"x": 1, "y": null, "z": "_"
1933+
}
1934+
],
1935+
"result": [ 1, null ],
1936+
"result_paths": [
1937+
"$[0]['x']",
1938+
"$[0]['y']"
1939+
]
1940+
},
19271941
{
19281942
"name": "relative non-singular query, index, equal",
19291943
"selector": "$[?(@[0, 0]==42)]",

0 commit comments

Comments
 (0)