summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorStephen Dolan <mu@netsoc.tcd.ie>2013-05-11 18:10:21 +0100
committerStephen Dolan <mu@netsoc.tcd.ie>2013-05-11 18:10:21 +0100
commite29db8d272eff570071d84d735fcbfc9f6fbcdd8 (patch)
tree9478a39dae6c7ef44feaa2cd8ee5a9842e32f089 /tests
parent7ca5127fcc74ec2c58c1ad01de57d1c5ec00b827 (diff)
Fix bug with path handling (used in assignments).
Closes #67
Diffstat (limited to 'tests')
-rw-r--r--tests/all.test8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/all.test b/tests/all.test
index 83f91dae..97af7e55 100644
--- a/tests/all.test
+++ b/tests/all.test
@@ -574,3 +574,11 @@ unique
.foo[.baz]
{"foo":{"bar":4},"baz":"bar"}
4
+
+.[] | .error = "no, it's OK"
+[{"error":true}]
+{"error": "no, it's OK"}
+
+[{a:1}] | .[] | .a=999
+null
+{"a": 999}