mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 00:54:51 +08:00
Fixes issue when update against self #1869
This commit is contained in:
@@ -17,6 +17,15 @@ var assignOperatorScenarios = []expressionScenario{
|
||||
"D0, P[], ()::a:\n b: cat\nx: frog\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
description: "Create yaml file",
|
||||
document: "a: {b: 3}",
|
||||
expression: `.a |= .`,
|
||||
skipDoc: true,
|
||||
expected: []string{
|
||||
"D0, P[], (!!map)::a: {b: 3}\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
document: "{}",
|
||||
|
||||
Reference in New Issue
Block a user