Skip to content

Commit 023c85e

Browse files
committed
Adding test for #2404
1 parent a3d9e01 commit 023c85e

File tree

2 files changed

+10
-1
lines changed

2 files changed

+10
-1
lines changed

pkg/yqlib/operator_anchors_aliases_test.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,15 @@ var fixedAnchorOperatorScenarios = []expressionScenario{
216216
"D0, P[m], (!!map)::{a: 42}\n",
217217
},
218218
},
219+
{
220+
skipDoc: true,
221+
description: "deleting after explode",
222+
document: "x: 37\na: &a\n b: 42\n<<: *a",
223+
expression: `explode(.) | del(.x)`,
224+
expected: []string{
225+
"D0, P[], (!!map)::a:\n b: 42\nb: 42\n",
226+
},
227+
},
219228
}
220229

221230
var badAnchorOperatorScenarios = []expressionScenario{

release_notes.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
4.47.1:
2-
- Fixed merge anchor behaviour (`<<`); #2110, #2386, #2178 Huge thanks to @stevenwdv!
2+
- Fixed merge anchor behaviour (`<<`); #2404, #2110, #2386, #2178 Huge thanks to @stevenwdv!
33
Note that you will need to set --yaml-fix-merge-anchor-to-spec to see the fixes
44
- Fixed panic for syntax error when creating a map #2423
55
- Bumped dependencies

0 commit comments

Comments
 (0)