Added append equals, merge append. Fixed creating numeric arrays

This commit is contained in:
Mike Farah
2020-11-28 11:24:16 +11:00
parent 3f48201a19
commit 3a030651a3
17 changed files with 92 additions and 46 deletions
+6 -9
View File
@@ -5,9 +5,6 @@ import (
)
var multiplyOperatorScenarios = []expressionScenario{
{
description: "*+ doc",
},
{
skipDoc: true,
document: `{a: {also: [1]}, b: {also: me}}`,
@@ -83,15 +80,15 @@ var multiplyOperatorScenarios = []expressionScenario{
description: "Merge keeps style of LHS",
dontFormatInputForDoc: true,
document: `a: {things: great}
b:
also: "me"
`,
b:
also: "me"
`,
expression: `. * {"a":.b}`,
expected: []string{
`D0, P[], (!!map)::a: {things: great, also: "me"}
b:
also: "me"
`,
b:
also: "me"
`,
},
},
{