Fixing usage of quoted numeric keys #1247

This commit is contained in:
Mike Farah
2022-06-23 19:22:11 +10:00
parent c7c11ef68b
commit be05df03b5
4 changed files with 26 additions and 16 deletions
+7
View File
@@ -44,6 +44,13 @@ var traversePathOperatorScenarios = []expressionScenario{
"D0, P[0 0], (!!int)::1\n",
},
},
{
skipDoc: true,
expression: `.cat["12"] = "things"`,
expected: []string{
"D0, P[], ()::cat:\n \"12\": things\n",
},
},
{
skipDoc: true,
document: `blah: {}`,