From 8cd602c31af183800bcffa7f033af7bd5e6388c0 Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 5 Oct 2026 21:57:10 +0200 Subject: [PATCH] Test that List advertises no path through a choice into a variant carrying a repeat --- path_test.go | 1 + 1 file changed, 1 insertion(+) diff --git a/path_test.go b/path_test.go index b1c0684..5a3afe1 100644 --- a/path_test.go +++ b/path_test.go @@ -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"} {