mirror of
https://github.com/mikefarah/yq.git
synced 2026-09-07 02:48:27 +08:00
Fixing usage of quoted numeric keys #1247
This commit is contained in:
@@ -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: {}`,
|
||||
|
||||
Reference in New Issue
Block a user