Fixed bug when splatting empty array #1613

This commit is contained in:
Mike Farah
2023-03-31 16:24:23 +11:00
parent 496035c75a
commit a389bb64b8
3 changed files with 18 additions and 1 deletions
+7
View File
@@ -35,6 +35,13 @@ steps:
`
var traversePathOperatorScenarios = []expressionScenario{
{
skipDoc: true,
description: "splat empty map",
document: "{}",
expression: ".[]",
expected: []string{},
},
{
skipDoc: true,
document: `[[1]]`,