|
|
@@ -93,19 +93,16 @@ func TestPluralsCardinal(t *testing.T) {
|
|
|
tests := []struct {
|
|
|
expected locales.PluralRule
|
|
|
}{
|
|
|
- // {
|
|
|
- // expected: locales.PluralRuleOne,
|
|
|
- // },
|
|
|
- // {
|
|
|
- // expected: locales.PluralRuleOther,
|
|
|
- // },
|
|
|
+ {
|
|
|
+ expected: locales.PluralRuleOther,
|
|
|
+ },
|
|
|
}
|
|
|
|
|
|
rules := trans.PluralsCardinal()
|
|
|
- // expected := 2
|
|
|
- // if len(rules) != expected {
|
|
|
- // t.Errorf("Expected '%d' Got '%d'", expected, len(rules))
|
|
|
- // }
|
|
|
+ expected := 1
|
|
|
+ if len(rules) != expected {
|
|
|
+ t.Errorf("Expected '%d' Got '%d'", expected, len(rules))
|
|
|
+ }
|
|
|
|
|
|
for _, tt := range tests {
|
|
|
|