mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-04 00:14:55 +08:00
Fixed to_entries[]
This commit is contained in:
@@ -13,6 +13,22 @@ var loadScenarios = []expressionScenario{
|
||||
"D0, P[], (!!null)::# comment\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
description: "Load and splat",
|
||||
expression: `load("../../examples/small.yaml")[]`,
|
||||
expected: []string{
|
||||
"D0, P[a], (!!str)::cat\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
description: "Load and traverse",
|
||||
expression: `load("../../examples/small.yaml").a`,
|
||||
expected: []string{
|
||||
"D0, P[a], (!!str)::cat\n",
|
||||
},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
description: "Load file with a header comment into an array",
|
||||
|
||||
Reference in New Issue
Block a user