Explorar o código

add TestPluralsCardinal of ja

tomocy %!s(int64=6) %!d(string=hai) anos
pai
achega
7b82d0a8f8
Modificáronse 1 ficheiros con 7 adicións e 10 borrados
  1. 7 10
      ja/ja_test.go

+ 7 - 10
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 {