changeset 19:b21203132ef6

Add a test for the issue reported by James Hendricks
author Radomir Dopieralski <sheep-devel@sheep.art.pl>
date Fri, 16 Aug 2013 09:43:25 +0200
parents 7dccdab5061e
children 5c844a14d835
files jpath.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/jpath.py	Tue Jan 17 18:07:54 2012 +0100
+++ b/jpath.py	Fri Aug 16 09:43:25 2013 +0200
@@ -390,6 +390,8 @@
     [2, 4]
     >>> get_all('..', {'a':1, 'x':[2], 'c':[{'b': '3'}]})
     [{'a': 1, 'x': [2], 'c': [{'b': '3'}]}, 1, [2], [{'b': '3'}], {'b': '3'}, 2]
+    >>> get_all('a[*].b.c', {'a': [{'b': {'c': 0}}, {'b': {'c': 1}}]})
+    [0, 1]
     """
 
     return list(Token.apply(TOKENIZER.tokenize(jpath), data))