Fixed null issue with entry operators

This commit is contained in:
Mike Farah
2021-05-10 10:42:43 +10:00
parent 6c3965dca3
commit a2bd463a91
3 changed files with 27 additions and 5 deletions
+7
View File
@@ -21,6 +21,13 @@ var entriesOperatorScenarios = []expressionScenario{
"D0, P[], (!!seq)::- key: 0\n value: a\n- key: 1\n value: b\n",
},
},
{
description: "to_entries null",
document: `null`,
expression: `to_entries`,
expected: []string{
},
},
{
description: "from_entries map",
document: `{a: 1, b: 2}`,