Answer stability round 2: the test names a missing population column

This commit is contained in:
2026-10-11 16:38:55 +02:00
committed by Lillem4n
parent 66b5d699fa
commit 9360447254
3 changed files with 8 additions and 4 deletions
+3
View File
@@ -392,6 +392,9 @@ func TestShippedPlacesSpreadAddresses(t *testing.T) {
}
header, _, _ := strings.Cut(geoTSV(t, "US", "locality"), "\n")
population := slices.Index(strings.Split(header, "\t"), "population")
if population < 0 {
t.Fatal("geo.US locality.tsv has no population column")
}
for _, r := range geoRows(t, "US", "locality") {
n, err := strconv.Atoi(r[population])
if err != nil {