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:23:51 +0300
committertomocy <tomocy.dev@gmail.com>2019-04-24 06:23:51 +0300
commit7aac5337279eefae8388fde4c63383cb975472cf (patch)
treec949a80fa9eb9f8d254fb5d386aa7fa40dc7782b
parentfebb7b6b6b913f964323c0170c81d27ab311b474 (diff)
add TestPluralsOrdinal of ja
-rw-r--r--ja/ja_test.go23
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 {