Answer prose round 1: one name for a place holding most of a postal code's land, the decision leaves the seeding to the code, and the test says what it checks

This commit is contained in:
2026-10-11 16:38:42 +02:00
committed by Lillem4n
parent 9360447254
commit 7f5a0cb63c
8 changed files with 21 additions and 24 deletions
+3 -3
View File
@@ -376,8 +376,8 @@ func TestShippedAddressIsOneNamedPick(t *testing.T) {
}
}
// TestShippedPlacesSpreadAddresses pins that a city ships a tenth of its streets, not ten,
// and that the US places reach below a town.
// TestShippedPlacesSpreadAddresses pins that a big city ships 100 streets or more, and that
// some US place holds under 2,500 people.
func TestShippedPlacesSpreadAddresses(t *testing.T) {
for country, city := range map[string]string{"SE": "Göteborg", "US": "3651000"} {
streets := 0
@@ -387,7 +387,7 @@ func TestShippedPlacesSpreadAddresses(t *testing.T) {
}
}
if streets < 100 {
t.Errorf("geo.%s: %s ships %d streets, want a tenth of its streets, at least 100", country, city, streets)
t.Errorf("geo.%s: %s ships %d streets, want at least 100", country, city, streets)
}
}
header, _, _ := strings.Cut(geoTSV(t, "US", "locality"), "\n")