Test one name across draw groups, two names on one category, and a repeat of a name's allocations

This commit is contained in:
2026-10-03 02:12:24 +02:00
committed by Lillem4n
parent d0c477ec78
commit 30d18bf485
2 changed files with 31 additions and 0 deletions
+1
View File
@@ -64,6 +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},
} {
f, err := New(WithoutShippedData(), WithDataFS(fstest.MapFS{
"word.json": {Data: []byte(word)},