Test a name read across draw groups or in a repeat, read once through a path, and misspelt

This commit is contained in:
2026-10-03 12:05:36 +02:00
committed by Lillem4n
parent b1aed332e7
commit 05cf531339
2 changed files with 14 additions and 13 deletions
+1 -1
View File
@@ -64,7 +64,7 @@ func TestNoReferenceAllocRegression(t *testing.T) {
}{
{"a repeat of a reference path", `{"format":"{r}","r":{"format":"{/word.w}","repeat":20,"separator":", "}}`, 66},
{"a named draw group", `{"format":"{a}","a":{"format":"{/word.w}","drawGroup":"g"}}`, 11},
{"a repeat of a name", `{"format":"{r}","r":{"format":"{/word as n}{n.w}","repeat":20,"separator":", "}}`, 205},
{"a repeat of a name", `{"format":"{r}","r":{"format":"{/word as n}{n.w}{n.w}","repeat":20,"separator":", "}}`, 205},
} {
f, err := New(WithoutShippedData(), WithDataFS(fstest.MapFS{
"word.json": {Data: []byte(word)},