diff options
author | David Tolnay <dtolnay@gmail.com> | 2015-09-21 11:15:25 -0700 |
---|---|---|
committer | David Tolnay <dtolnay@gmail.com> | 2015-09-21 20:33:06 -0700 |
commit | 58f082d74fa29ead024ff2d695eae874b9b67538 (patch) | |
tree | 5234c99f98af885d6ee2944662c423530944ea0e /tests | |
parent | 154d0ee4a824c666c056d7fd4e6028e3f3247c22 (diff) |
Delete negative indices in array (fix #954)
Diffstat (limited to 'tests')
-rw-r--r-- | tests/jq.test | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test index 830d157b..6c75192e 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -784,6 +784,10 @@ null {"foo": [1,4], "bar": [1]} {"bar": [1]} +del(.[1], .[-6], .[2], .[-3:9]) +[0, 1, 2, 3, 4, 5, 6, 7, 8, 9] +[0, 3, 5, 6, 9] + # # Assignment # |