@@ -16,7 +16,7 @@ func TestBmBoDzIdIgIiInJaJboJvJwKdeKeaKmKoLktLoMsMyNqoRootSahSesSgThToViWoYoYueZ
16
16
}
17
17
}
18
18
19
- func TestAmAsBnFaGuHiKnMrZu (t * testing.T ) {
19
+ func TestAmAsBnFaGuHiKnZu (t * testing.T ) {
20
20
var tests []pluralFormTest
21
21
22
22
tests = appendIntegerTests (tests , One , []string {"0" , "1" })
@@ -25,7 +25,7 @@ func TestAmAsBnFaGuHiKnMrZu(t *testing.T) {
25
25
tests = appendIntegerTests (tests , Other , []string {"2~17" , "100" , "1000" , "10000" , "100000" , "1000000" })
26
26
tests = appendDecimalTests (tests , Other , []string {"1.1~2.6" , "10.0" , "100.0" , "1000.0" , "10000.0" , "100000.0" , "1000000.0" })
27
27
28
- locales := []string {"am" , "as" , "bn" , "fa" , "gu" , "hi" , "kn" , "mr" , " zu" }
28
+ locales := []string {"am" , "as" , "bn" , "fa" , "gu" , "hi" , "kn" , "zu" }
29
29
for _ , locale := range locales {
30
30
runTests (t , locale , tests )
31
31
}
@@ -120,7 +120,7 @@ func TestTzm(t *testing.T) {
120
120
}
121
121
}
122
122
123
- func TestAfAsaAzBemBezBgBrxCeCggChrCkbDvEeElEoEsEuFoFurGswHaHawHuJgoJmcKaKajKcgKkKkjKlKsKsbKuKyLbLgMasMgoMlMnNahNbNdNeNnNnhNoNrNyNynOmOrOsPapPsRmRofRwkSaqSdSdhSehSnSoSqSsSsyStSyrTaTeTeoTigTkTnTrTsUgUzVeVoVunWaeXhXog (t * testing.T ) {
123
+ func TestAfAsaAzBemBezBgBrxCeCggChrCkbDvEeElEoEsEuFoFurGswHaHawHuJgoJmcKaKajKcgKkKkjKlKsKsbKuKyLbLgMasMgoMlMnMrNahNbNdNeNnNnhNoNrNyNynOmOrOsPapPsRmRofRwkSaqSdSdhSehSnSoSqSsSsyStSyrTaTeTeoTigTkTnTrTsUgUzVeVoVunWaeXhXog (t * testing.T ) {
124
124
var tests []pluralFormTest
125
125
126
126
tests = appendIntegerTests (tests , One , []string {"1" })
@@ -129,7 +129,7 @@ func TestAfAsaAzBemBezBgBrxCeCggChrCkbDvEeElEoEsEuFoFurGswHaHawHuJgoJmcKaKajKcgK
129
129
tests = appendIntegerTests (tests , Other , []string {"0" , "2~16" , "100" , "1000" , "10000" , "100000" , "1000000" })
130
130
tests = appendDecimalTests (tests , Other , []string {"0.0~0.9" , "1.1~1.6" , "10.0" , "100.0" , "1000.0" , "10000.0" , "100000.0" , "1000000.0" })
131
131
132
- locales := []string {"af" , "asa" , "az" , "bem" , "bez" , "bg" , "brx" , "ce" , "cgg" , "chr" , "ckb" , "dv" , "ee" , "el" , "eo" , "es" , "eu" , "fo" , "fur" , "gsw" , "ha" , "haw" , "hu" , "jgo" , "jmc" , "ka" , "kaj" , "kcg" , "kk" , "kkj" , "kl" , "ks" , "ksb" , "ku" , "ky" , "lb" , "lg" , "mas" , "mgo" , "ml" , "mn" , "nah" , "nb" , "nd" , "ne" , "nn" , "nnh" , "no" , "nr" , "ny" , "nyn" , "om" , "or" , "os" , "pap" , "ps" , "rm" , "rof" , "rwk" , "saq" , "sd" , "sdh" , "seh" , "sn" , "so" , "sq" , "ss" , "ssy" , "st" , "syr" , "ta" , "te" , "teo" , "tig" , "tk" , "tn" , "tr" , "ts" , "ug" , "uz" , "ve" , "vo" , "vun" , "wae" , "xh" , "xog" }
132
+ locales := []string {"af" , "asa" , "az" , "bem" , "bez" , "bg" , "brx" , "ce" , "cgg" , "chr" , "ckb" , "dv" , "ee" , "el" , "eo" , "es" , "eu" , "fo" , "fur" , "gsw" , "ha" , "haw" , "hu" , "jgo" , "jmc" , "ka" , "kaj" , "kcg" , "kk" , "kkj" , "kl" , "ks" , "ksb" , "ku" , "ky" , "lb" , "lg" , "mas" , "mgo" , "ml" , "mn" , "mr" , " nah" , "nb" , "nd" , "ne" , "nn" , "nnh" , "no" , "nr" , "ny" , "nyn" , "om" , "or" , "os" , "pap" , "ps" , "rm" , "rof" , "rwk" , "saq" , "sd" , "sdh" , "seh" , "sn" , "so" , "sq" , "ss" , "ssy" , "st" , "syr" , "ta" , "te" , "teo" , "tig" , "tk" , "tn" , "tr" , "ts" , "ug" , "uz" , "ve" , "vo" , "vun" , "wae" , "xh" , "xog" }
133
133
for _ , locale := range locales {
134
134
runTests (t , locale , tests )
135
135
}
@@ -180,7 +180,7 @@ func TestMk(t *testing.T) {
180
180
}
181
181
}
182
182
183
- func TestFilTl (t * testing.T ) {
183
+ func TestCebFilTl (t * testing.T ) {
184
184
var tests []pluralFormTest
185
185
186
186
tests = appendIntegerTests (tests , One , []string {"0~3" , "5" , "7" , "8" , "10~13" , "15" , "17" , "18" , "20" , "21" , "100" , "1000" , "10000" , "100000" , "1000000" })
@@ -189,7 +189,7 @@ func TestFilTl(t *testing.T) {
189
189
tests = appendIntegerTests (tests , Other , []string {"4" , "6" , "9" , "14" , "16" , "19" , "24" , "26" , "104" , "1004" })
190
190
tests = appendDecimalTests (tests , Other , []string {"0.4" , "0.6" , "0.9" , "1.4" , "1.6" , "1.9" , "2.4" , "2.6" , "10.4" , "100.4" , "1000.4" })
191
191
192
- locales := []string {"fil" , "tl" }
192
+ locales := []string {"ceb" , " fil" , "tl" }
193
193
for _ , locale := range locales {
194
194
runTests (t , locale , tests )
195
195
}
@@ -249,7 +249,7 @@ func TestKsh(t *testing.T) {
249
249
}
250
250
}
251
251
252
- func TestIuKwNaqSeSmaSmiSmjSmnSms (t * testing.T ) {
252
+ func TestIuNaqSeSmaSmiSmjSmnSms (t * testing.T ) {
253
253
var tests []pluralFormTest
254
254
255
255
tests = appendIntegerTests (tests , One , []string {"1" })
@@ -261,7 +261,7 @@ func TestIuKwNaqSeSmaSmiSmjSmnSms(t *testing.T) {
261
261
tests = appendIntegerTests (tests , Other , []string {"0" , "3~17" , "100" , "1000" , "10000" , "100000" , "1000000" })
262
262
tests = appendDecimalTests (tests , Other , []string {"0.0~0.9" , "1.1~1.6" , "10.0" , "100.0" , "1000.0" , "10000.0" , "100000.0" , "1000000.0" })
263
263
264
- locales := []string {"iu" , "kw" , " naq" , "se" , "sma" , "smi" , "smj" , "smn" , "sms" }
264
+ locales := []string {"iu" , "naq" , "se" , "sma" , "smi" , "smj" , "smn" , "sms" }
265
265
for _ , locale := range locales {
266
266
runTests (t , locale , tests )
267
267
}
@@ -290,7 +290,7 @@ func TestMoRo(t *testing.T) {
290
290
291
291
tests = appendIntegerTests (tests , One , []string {"1" })
292
292
293
- tests = appendIntegerTests (tests , Few , []string {"0" , "2~16" , "101 " , "1001 " })
293
+ tests = appendIntegerTests (tests , Few , []string {"0" , "2~16" , "102 " , "1002 " })
294
294
tests = appendDecimalTests (tests , Few , []string {"0.0~1.5" , "10.0" , "100.0" , "1000.0" , "10000.0" , "100000.0" , "1000000.0" })
295
295
296
296
tests = appendIntegerTests (tests , Other , []string {"20~35" , "100" , "1000" , "10000" , "100000" , "1000000" })
@@ -629,3 +629,30 @@ func TestCy(t *testing.T) {
629
629
runTests (t , locale , tests )
630
630
}
631
631
}
632
+
633
+ func TestKw (t * testing.T ) {
634
+ var tests []pluralFormTest
635
+
636
+ tests = appendIntegerTests (tests , Zero , []string {"0" })
637
+ tests = appendDecimalTests (tests , Zero , []string {"0.0" , "0.00" , "0.000" , "0.0000" })
638
+
639
+ tests = appendIntegerTests (tests , One , []string {"1" })
640
+ tests = appendDecimalTests (tests , One , []string {"1.0" , "1.00" , "1.000" , "1.0000" })
641
+
642
+ tests = appendIntegerTests (tests , Two , []string {"2" , "22" , "42" , "62" , "82" , "102" , "122" , "142" , "1002" })
643
+ tests = appendDecimalTests (tests , Two , []string {"2.0" , "22.0" , "42.0" , "62.0" , "82.0" , "102.0" , "122.0" , "142.0" , "1002.0" })
644
+
645
+ tests = appendIntegerTests (tests , Few , []string {"3" , "23" , "43" , "63" , "83" , "103" , "123" , "143" , "1003" })
646
+ tests = appendDecimalTests (tests , Few , []string {"3.0" , "23.0" , "43.0" , "63.0" , "83.0" , "103.0" , "123.0" , "143.0" , "1003.0" })
647
+
648
+ tests = appendIntegerTests (tests , Many , []string {"21" , "41" , "61" , "81" , "101" , "121" , "141" , "161" , "1001" })
649
+ tests = appendDecimalTests (tests , Many , []string {"21.0" , "41.0" , "61.0" , "81.0" , "101.0" , "121.0" , "141.0" , "161.0" , "1001.0" })
650
+
651
+ tests = appendIntegerTests (tests , Other , []string {"4~19" , "100" , "1000000" })
652
+ tests = appendDecimalTests (tests , Other , []string {"0.1~0.9" , "1.1~1.7" , "10.0" , "100.0" , "1000000.0" })
653
+
654
+ locales := []string {"kw" }
655
+ for _ , locale := range locales {
656
+ runTests (t , locale , tests )
657
+ }
658
+ }
0 commit comments