mirror of
https://github.com/mikefarah/yq.git
synced 2025-01-12 19:25:37 +00:00
Added another test
This commit is contained in:
parent
feb97c9872
commit
1c50ae4e6a
@ -54,6 +54,16 @@ var collectObjectOperatorScenarios = []expressionScenario{
|
|||||||
"D0, P[], (!!map)::wrap: {name: Mike}\n",
|
"D0, P[], (!!map)::wrap: {name: Mike}\n",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
skipDoc: true,
|
||||||
|
document: "{name: Mike}\n",
|
||||||
|
document2: "{name: Bob}\n",
|
||||||
|
expression: `{"wrap": .}`,
|
||||||
|
expected: []string{
|
||||||
|
"D0, P[], (!!map)::wrap: {name: Mike}\n",
|
||||||
|
"D0, P[], (!!map)::wrap: {name: Bob}\n",
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
skipDoc: true,
|
skipDoc: true,
|
||||||
document: "{name: Mike}\n---\n{name: Bob}",
|
document: "{name: Mike}\n---\n{name: Bob}",
|
||||||
|
Loading…
Reference in New Issue
Block a user