Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/gohugoio/locales.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortomocy <tomocy.dev@gmail.com>2019-04-24 06:24:39 +0300
committertomocy <tomocy.dev@gmail.com>2019-04-24 06:24:39 +0300
commit7b82d0a8f8bf35e624932ca8a84e1d4babea48d0 (patch)
treee3782d90aa861940ff9494884e76544a8280c37d
parent7aac5337279eefae8388fde4c63383cb975472cf (diff)
add TestPluralsCardinal of ja
-rw-r--r--ja/ja_test.go17
1 files 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 {