summaryrefslogtreecommitdiffstats
path: root/testdata
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2012-12-07 00:26:00 +0000
committerStephen Dolan <mu@netsoc.tcd.ie>2012-12-07 00:28:11 +0000
commit84026f051347a6c6668e70d120905beee0192535 (patch)
tree8bef2c846265348dad9dd9771586b13aefdb485e /testdata
parentc0a2f1ab470595d85fd20a643325a16737433a2a (diff)
Change order of evaluation for certain indexing operations.
'.foo[.bar]' used to parse like '.foo | .bar as $b | .[$b]', now it parses like '.bar as $b | .foo | .[$b]'.
Diffstat (limited to 'testdata')
-rw-r--r--testdata4
1 files changed, 4 insertions, 0 deletions
diff --git a/testdata b/testdata
index a3e2e49b..00ecc69f 100644
--- a/testdata
+++ b/testdata
@@ -464,3 +464,7 @@ unique
[min,max,min_by(.),max_by(.)]
[]
[null,null,null,null]
+
+.foo[.baz]
+{"foo":{"bar":4},"baz":"bar"}
+4