Преглед изворни кода

add TestPluralsCardinal of ja

tomocy пре 6 година
родитељ
комит
7b82d0a8f8
1 измењених фајлова са 7 додато и 10 уклоњено
  1. 7 10
      ja/ja_test.go

+ 7 - 10
ja/ja_test.go

@@ -93,19 +93,16 @@ func TestPluralsCardinal(t *testing.T) {
 	tests := []struct {
 	tests := []struct {
 		expected locales.PluralRule
 		expected locales.PluralRule
 	}{
 	}{
-		// {
-		// 	expected: locales.PluralRuleOne,
-		// },
-		// {
-		// 	expected: locales.PluralRuleOther,
-		// },
+		{
+			expected: locales.PluralRuleOther,
+		},
 	}
 	}
 
 
 	rules := trans.PluralsCardinal()
 	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 {
 	for _, tt := range tests {