Merge now copies anchor names

This commit is contained in:
Mike Farah
2021-02-11 10:58:40 +11:00
parent 7518dac99c
commit 55712afea6
3 changed files with 5 additions and 4 deletions
+2 -2
View File
@@ -132,11 +132,11 @@ b:
},
},
{
description: "Merge does not copy anchor names",
description: "Merge copies anchor names",
document: `{a: {c: &cat frog}, b: {f: *cat}, c: {g: thongs}}`,
expression: `.c * .a`,
expected: []string{
"D0, P[c], (!!map)::{g: thongs, c: frog}\n",
"D0, P[c], (!!map)::{g: thongs, c: &cat frog}\n",
},
},
{