Skip to content

Commit 2a37ef7

Browse files
author
Adam Bloomston
committed
added test for foo.[*] where foo is null
1 parent eb23b1e commit 2a37ef7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_jsonpath.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,8 @@ def test_index_value(self):
130130
self.check_cases([
131131
('[0]', [42], [42]),
132132
('[5]', [42], []),
133-
('[2]', [34, 65, 29, 59], [29])
133+
('[2]', [34, 65, 29, 59], [29]),
134+
('[0]', None, [])
134135
])
135136

136137
def test_slice_value(self):

0 commit comments

Comments
 (0)