Skip to content

Commit 0d865e6

Browse files
committed
Sync additional test from jmespath.test
1 parent adbd2a2 commit 0d865e6

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

test/compliance/slice.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,8 @@
131131
"given": {
132132
"foo": [{"a": 1}, {"a": 2}, {"a": 3}],
133133
"bar": [{"a": {"b": 1}}, {"a": {"b": 2}},
134-
{"a": {"b": 3}}]
134+
{"a": {"b": 3}}],
135+
"baz": 50
135136
},
136137
"cases": [
137138
{
@@ -153,6 +154,10 @@
153154
{
154155
"expression": "bar[:2].a.b",
155156
"result": [1, 2]
157+
},
158+
{
159+
"expression": "baz[:2].a",
160+
"result": null
156161
}
157162
]
158163
}, {

0 commit comments

Comments
 (0)