From 7aac5337279eefae8388fde4c63383cb975472cf Mon Sep 17 00:00:00 2001 From: tomocy Date: Wed, 24 Apr 2019 12:23:51 +0900 Subject: add TestPluralsOrdinal of ja --- ja/ja_test.go | 23 +++++++---------------- 1 file 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 { -- cgit v1.2.3