mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-06 18:24:57 +08:00
Added multiple object example from PR #1226
This commit is contained in:
@@ -154,6 +154,13 @@ var collectObjectOperatorScenarios = []expressionScenario{
|
||||
"D0, P[], (!!map)::{wrap: {further: {name: Mike}}}\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
description: "Creating yaml from scratch with multiple objects",
|
||||
expression: `(.a.b = "foo") | (.d.e = "bar")`,
|
||||
expected: []string{
|
||||
"D0, P[], ()::a:\n b: foo\nd:\n e: bar\n",
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
func TestCollectObjectOperatorScenarios(t *testing.T) {
|
||||
|
||||
Reference in New Issue
Block a user