diff options
Diffstat (limited to 'tests/jq.test')
-rw-r--r-- | tests/jq.test | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/jq.test b/tests/jq.test index 963595b0..ac784ef8 100644 --- a/tests/jq.test +++ b/tests/jq.test @@ -1382,4 +1382,9 @@ true {"a":null,"b":null} {"a":null,"b":"b"} +# Regression test for #1368 +(.. | select(type == "object" and has("b") and (.b | type) == "array")|.b) |= .[0] +{"a": {"b": [1, {"b": 3}]}} +{"a": {"b": 1}} + |