Fixed to_entries and del bug #1886

This commit is contained in:
Mike Farah
2023-11-30 14:04:54 +11:00
parent c11a53322b
commit 730f240d24
5 changed files with 28 additions and 7 deletions
+9
View File
@@ -5,6 +5,15 @@ import (
)
var entriesOperatorScenarios = []expressionScenario{
{
description: "to_entries, delete key",
skipDoc: true,
document: `{a: 1, b: 2}`,
expression: `to_entries | map(del(.key))`,
expected: []string{
"D0, P[], (!!seq)::- value: 1\n- value: 2\n",
},
},
{
description: "to_entries Map",
document: `{a: 1, b: 2}`,