Can add and merge append to null

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 1be3b31bbc
commit c77001f969
4 changed files with 34 additions and 1 deletions
+8
View File
@@ -144,6 +144,14 @@ b:
"D0, P[a], (!!seq)::[{thing: two}]\n",
},
},
{
skipDoc: true,
document: `{a: {array: [1]}, b: {}}`,
expression: `.b *+ .a`,
expected: []string{
"D0, P[b], (!!map)::{array: [1]}\n",
},
},
{
description: "Merge, appending arrays",
document: `{a: {array: [1, 2, animal: dog], value: coconut}, b: {array: [3, 4, animal: cat], value: banana}}`,