diff options
author | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-05-13 16:04:30 +0100 |
---|---|---|
committer | Stephen Dolan <mu@netsoc.tcd.ie> | 2013-05-13 16:04:30 +0100 |
commit | d8706fd4607ee1b5b56debd4da39e3314739f126 (patch) | |
tree | f9f4d4309c573074cc2da0be8c1cabe3eade6364 /tests | |
parent | e13f24ab45c2bc6fead9d698bdeaa84746761692 (diff) |
Fix the //= operator.
Closes #62.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/all.test | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/all.test b/tests/all.test index 97af7e55..5b38709b 100644 --- a/tests/all.test +++ b/tests/all.test @@ -475,10 +475,9 @@ def inc(x): x |= .+1; inc(.[].a) [{"foo":[1,2], "bar": 42}, {"foo":[1], "bar": null}, {"foo":[null,false,3], "bar": 18}, {"foo":[], "bar":42}, {"foo": [null,false,null], "bar": 41}] [[1,2], [1], [3], [42], [41]] -# FIXME: behaviour of update operators -# .[] //= .[0] -# ["hello",true,false,[false],null] -# ["hello",true,"hello",[false],"hello"] +.[] //= .[0] +["hello",true,false,[false],null] +["hello",true,"hello",[false],"hello"] .[] | [.[0] and .[1], .[0] or .[1]] [[true,[]], [false,1], [42,null], [null,false]] |