Fixed recursive decent on empty objects/arrays

This commit is contained in:
Mike Farah
2020-11-25 15:01:12 +11:00
parent 0a66bb797d
commit 5205f01248
6 changed files with 27 additions and 5 deletions
+7
View File
@@ -13,6 +13,13 @@ var multiplyOperatorScenarios = []expressionScenario{
"D0, P[], (!!map)::{a: {also: me}, b: {also: me}}\n",
},
},
{
skipDoc: true,
expression: `{} * {"cat":"dog"}`,
expected: []string{
"D0, P[], (!!map)::cat: dog\n",
},
},
{
skipDoc: true,
document: `{a: {also: me}, b: {also: [1]}}`,