mirror of
https://github.com/mikefarah/yq.git
synced 2026-03-10 15:54:26 +00:00
Adding test for #2404
This commit is contained in:
parent
a3d9e0172f
commit
023c85e1e2
@ -216,6 +216,15 @@ var fixedAnchorOperatorScenarios = []expressionScenario{
|
||||
"D0, P[m], (!!map)::{a: 42}\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
description: "deleting after explode",
|
||||
document: "x: 37\na: &a\n b: 42\n<<: *a",
|
||||
expression: `explode(.) | del(.x)`,
|
||||
expected: []string{
|
||||
"D0, P[], (!!map)::a:\n b: 42\nb: 42\n",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
var badAnchorOperatorScenarios = []expressionScenario{
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
4.47.1:
|
||||
- Fixed merge anchor behaviour (`<<`); #2110, #2386, #2178 Huge thanks to @stevenwdv!
|
||||
- Fixed merge anchor behaviour (`<<`); #2404, #2110, #2386, #2178 Huge thanks to @stevenwdv!
|
||||
Note that you will need to set --yaml-fix-merge-anchor-to-spec to see the fixes
|
||||
- Fixed panic for syntax error when creating a map #2423
|
||||
- Bumped dependencies
|
||||
|
||||
Loading…
Reference in New Issue
Block a user