Fixed to_entries[]

This commit is contained in:
Mike Farah
2023-12-12 15:44:34 +11:00
parent eff7d99e2b
commit 4cf123fed5
5 changed files with 702 additions and 639 deletions
+16
View File
@@ -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",