Test that List advertises no path into a level carrying a repeat

This commit is contained in:
2026-10-05 21:53:02 +02:00
committed by Lillem4n
parent 36329f1328
commit a9c59ba6b7
+5
View File
@@ -78,6 +78,11 @@ func TestPathRefusesALevelCarryingARepeat(t *testing.T) {
t.Errorf("NewTemplate({/%s}) = %v, want the level /%s named", path, err, level) 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 // TestPathThroughChoice pins the rule that keeps a dotted path from rendering on