diff options
author | tomocy <tomocy.dev@gmail.com> | 2019-04-24 06:23:51 +0300 |
---|---|---|
committer | tomocy <tomocy.dev@gmail.com> | 2019-04-24 06:23:51 +0300 |
commit | 7aac5337279eefae8388fde4c63383cb975472cf (patch) | |
tree | c949a80fa9eb9f8d254fb5d386aa7fa40dc7782b | |
parent | febb7b6b6b913f964323c0170c81d27ab311b474 (diff) |
add TestPluralsOrdinal of ja
-rw-r--r-- | ja/ja_test.go | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/ja/ja_test.go b/ja/ja_test.go index b3ceb3fe..d3f6a7a9 100644 --- a/ja/ja_test.go +++ b/ja/ja_test.go @@ -59,25 +59,16 @@ func TestPluralsOrdinal(t *testing.T) { tests := []struct { expected locales.PluralRule }{ - // { - // expected: locales.PluralRuleOne, - // }, - // { - // expected: locales.PluralRuleTwo, - // }, - // { - // expected: locales.PluralRuleFew, - // }, - // { - // expected: locales.PluralRuleOther, - // }, + { + expected: locales.PluralRuleOther, + }, } rules := trans.PluralsOrdinal() - // expected := 4 - // 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 { |