Skip to content

Commit def200f

Browse files
committed
Add test filter selector followed by name selector (#96)
1 parent b1e176a commit def200f

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

tests/filter.json

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1910,6 +1910,20 @@
19101910
"result": [],
19111911
"result_paths": []
19121912
},
1913+
{
1914+
"name": "followed by name selector",
1915+
"selector": "$[[email protected]==1].b.x",
1916+
"document": [
1917+
{
1918+
"a": 1,
1919+
"b": { "x": 2 }
1920+
}
1921+
],
1922+
"result": [ 2 ],
1923+
"result_paths": [
1924+
"$[0]['b']['x']"
1925+
]
1926+
},
19131927
{
19141928
"name": "relative non-singular query, index, equal",
19151929
"selector": "$[?(@[0, 0]==42)]",
@@ -3381,4 +3395,4 @@
33813395
]
33823396
}
33833397
]
3384-
}
3398+
}

0 commit comments

Comments
 (0)