summaryrefslogtreecommitdiff
path: root/tests.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests.py')
-rwxr-xr-xtests.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests.py b/tests.py
index 9d4ca59..10a56e8 100755
--- a/tests.py
+++ b/tests.py
@@ -86,6 +86,10 @@ class WrongInputTests(unittest.TestCase):
doc = [0, 1, 2]
self.assertRaises(JsonPointerException, resolve_pointer, doc, '/a')
+ def test_oob(self):
+ # this list does not have 10 members
+ doc = [0, 1, 2]
+ self.assertRaises(JsonPointerException, resolve_pointer, doc, '/10')
suite = unittest.TestSuite()