package say import "testing" // The day forms, kept from internal/memory when the helper moved: 21 takes the // singular and 11 does not, which is the whole reason this is not n == 1. func TestDays(t *testing.T) { for _, c := range []struct { n int want string }{{1, "день"}, {2, "дня"}, {5, "дней"}, {11, "дней"}, {21, "день"}, {22, "дня"}, {114, "дней"}} { if got := Days(c.n); got != c.want { t.Errorf("Days(%d) = %q, want %q", c.n, got, c.want) } } }