summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdam Bloomston <mail@adambloomston>2015-10-01 21:09:59 -0400
committerAdam Bloomston <mail@adambloomston>2015-10-01 21:09:59 -0400
commit2a37ef714c66a50faa09193fd0af1a6a55639c5c (patch)
tree0b4dc0edd1d0d2cf84a710f5194b9ce41b9e3d79
parenteb23b1e18426af5d429be7a0985002416b13e72d (diff)
downloadjsonpath-rw-2a37ef714c66a50faa09193fd0af1a6a55639c5c.tar.gz
added test for foo.[*] where foo is null
-rw-r--r--tests/test_jsonpath.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_jsonpath.py b/tests/test_jsonpath.py
index bf3d5c6..32d6d6a 100644
--- a/tests/test_jsonpath.py
+++ b/tests/test_jsonpath.py
@@ -130,7 +130,8 @@ class TestJsonPath(unittest.TestCase):
self.check_cases([
('[0]', [42], [42]),
('[5]', [42], []),
- ('[2]', [34, 65, 29, 59], [29])
+ ('[2]', [34, 65, 29, 59], [29]),
+ ('[0]', None, [])
])
def test_slice_value(self):