Fixed issue on creating objects using []

This commit is contained in:
Mike Farah
2021-06-11 14:27:44 +10:00
parent 01267d062b
commit 88bee2809f
3 changed files with 17 additions and 3 deletions
+7
View File
@@ -43,6 +43,13 @@ var traversePathOperatorScenarios = []expressionScenario{
"D0, P[0 0 0], (!!int)::1\n",
},
},
{
skipDoc: true,
expression: `.["cat"] = "thing"`,
expected: []string{
"D0, P[], ()::cat: thing\n",
},
},
{
description: "Simple map navigation",
document: `{a: {b: apple}}`,