Tests for date() and time(), a named table keyed by its parent, and weighted names and valid ids in both locales

This commit is contained in:
2026-09-18 18:02:25 +02:00
parent b6219bf76a
commit 7ff817d5ae
5 changed files with 239 additions and 19 deletions
+11
View File
@@ -81,3 +81,14 @@ func TestDifferentSeedsDiffer(t *testing.T) {
}
t.Fatal("seeds 1 and 2 produced identical sequences")
}
// fakeTemplate renders an inline template against a loaded generator, so its
// references resolve.
func fakeTemplate(t *testing.T, f *Generator, s string) string {
t.Helper()
got, err := f.FakeTemplate(s)
if err != nil {
t.Fatalf("FakeTemplate(%s) = %v", s, err)
}
return got
}