Test that List advertises no path through a choice into a variant carrying a repeat

This commit is contained in:
2026-10-05 21:57:10 +02:00
committed by Lillem4n
parent 964f04c7c8
commit 8cd602c31a
+1
View File
@@ -67,6 +67,7 @@ func TestPathRefusesALevelCarryingARepeat(t *testing.T) {
dir := writeData(t, map[string]string{
"outer": `{"format":"{inner}","inner":{"format":"{a}","a":"v","repeat":3,"separator":","}}`,
"x": `{"format":"{a}","a":"v","repeat":3,"separator":","}`,
"y": `{"format":"{p}","p":[{"format":"{a}","a":"v","repeat":3,"separator":","},{"format":"{a}","a":"w"}]}`,
})
f := newGenerator(t, dir, WithSeed(1))
for path, level := range map[string]string{"x.a": "x", "outer.inner.a": "outer.inner"} {