From 7b82d0a8f8bf35e624932ca8a84e1d4babea48d0 Mon Sep 17 00:00:00 2001 From: tomocy Date: Wed, 24 Apr 2019 12:24:39 +0900 Subject: add TestPluralsCardinal of ja --- ja/ja_test.go | 17 +++++++---------- 1 file changed, 7 insertions(+), 10 deletions(-) diff --git a/ja/ja_test.go b/ja/ja_test.go index d3f6a7a9..b99a4666 100644 --- a/ja/ja_test.go +++ b/ja/ja_test.go @@ -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 { -- cgit v1.2.3