From a9c59ba6b7e86a4f6c404cd47ea4c840342a9f3d Mon Sep 17 00:00:00 2001 From: Lilleman auf Larv Date: Mon, 5 Oct 2026 21:53:02 +0200 Subject: [PATCH] Test that List advertises no path into a level carrying a repeat --- path_test.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/path_test.go b/path_test.go index e3cbf3c..b1c0684 100644 --- a/path_test.go +++ b/path_test.go @@ -78,6 +78,11 @@ func TestPathRefusesALevelCarryingARepeat(t *testing.T) { t.Errorf("NewTemplate({/%s}) = %v, want the level /%s named", path, err, level) } } + for _, p := range f.List() { + if _, err := f.Fake(p); err != nil { + t.Errorf("Fake(%q) = %v, but List() advertises it", p, err) + } + } } // TestPathThroughChoice pins the rule that keeps a dotted path from rendering on