Draw a pick's references in the draw group of the read of the name, where the draw fences survey them

This commit is contained in:
2026-10-03 02:18:21 +02:00
committed by Lillem4n
parent 4362905b82
commit df63d0f562
5 changed files with 14 additions and 34 deletions
-16
View File
@@ -337,19 +337,3 @@ func TestOneRenderReadsOneNameAcrossDrawGroups(t *testing.T) {
}
}
}
func TestTwoNamesOnOneCategoryAreTwoPicks(t *testing.T) {
dir := writeData(t, map[string]string{
"given": `{"format":"{first}","first":["Ada","Bo","Cy","Di","Ed","Flo","Gus","Hal"]}`,
"person": `"{/given.first}"`,
"card": `"{/person as p}{/person as q}{p}|{q}"`,
})
f := newGenerator(t, dir, WithSeed(53))
for i := 0; i < 50; i++ {
got := strings.Split(fake(t, f, "card"), "|")
if got[0] != got[1] {
return
}
}
t.Fatal("card printed one person for p and q in 50 renders, want two picks")
}