mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-01 14:14:52 +08:00
Fixed array subtraction update bug #2159
This commit is contained in:
@@ -14,6 +14,14 @@ var addOperatorScenarios = []expressionScenario{
|
||||
"D0, P[1 a], (!!int)::3\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
description: "add sequence creates a new sequence",
|
||||
expression: `["a"] as $f | {0:$f + ["b"], 1:$f}`,
|
||||
expected: []string{
|
||||
"D0, P[], (!!map)::0:\n - a\n - b\n1:\n - a\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
document: `a: key`,
|
||||
|
||||
Reference in New Issue
Block a user