mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-05 17:36:59 +08:00
Fixed bug when splatting empty array #1613
This commit is contained in:
@@ -35,6 +35,13 @@ steps:
|
||||
`
|
||||
|
||||
var traversePathOperatorScenarios = []expressionScenario{
|
||||
{
|
||||
skipDoc: true,
|
||||
description: "splat empty map",
|
||||
document: "{}",
|
||||
expression: ".[]",
|
||||
expected: []string{},
|
||||
},
|
||||
{
|
||||
skipDoc: true,
|
||||
document: `[[1]]`,
|
||||
|
||||
Reference in New Issue
Block a user