Load the whole shipped set where a test loaded one locale, and admit registered street and place names

This commit is contained in:
2026-09-18 00:23:03 +02:00
parent 2127b3277c
commit 42c74b9b43
5 changed files with 43 additions and 43 deletions
+2 -2
View File
@@ -130,8 +130,8 @@ func TestPathKeyIsUnambiguous(t *testing.T) {
// single-variant choice always picks the same item, so it needs no every-variant
// guard and the error can name the field that is missing.
func TestMissingFieldNamesItself(t *testing.T) {
f := newGenerator(t, "data/sv_SE", WithSeed(1))
_, err := f.Fake("person.typo")
f := newGenerator(t, "data", WithSeed(1))
_, err := f.Fake("sv_SE.person.typo")
if err == nil || !strings.Contains(err.Error(), `no field "typo"`) {
t.Errorf("Fake(person.typo) = %v, want it to name the missing field", err)
}