Skip to content

Commit d1ef4ae

Browse files
authored
update to CLDR v35.1 (2019-04-17) (#175)
1 parent b280125 commit d1ef4ae

File tree

4 files changed

+85
-22
lines changed

4 files changed

+85
-22
lines changed

v2/internal/plural/codegen/plurals.xml

+14-6
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ CLDR data files are interpreted according to the LDML specification (http://unic
66
For terms of use, see http://www.unicode.org/copyright.html
77
-->
88
<supplementalData>
9-
<version number="$Revision: 14397 $"/>
9+
<version number="$Revision: 14885 $"/>
1010
<plurals type="cardinal">
1111
<!-- For a canonicalized list, use GeneratedPluralSamples -->
1212

@@ -18,7 +18,7 @@ For terms of use, see http://www.unicode.org/copyright.html
1818

1919
<!-- 2: one,other -->
2020

21-
<pluralRules locales="am as bn fa gu hi kn mr zu">
21+
<pluralRules locales="am as bn fa gu hi kn zu">
2222
<pluralRule count="one">i = 0 or n = 1 @integer 0, 1 @decimal 0.0~1.0, 0.00~0.04</pluralRule>
2323
<pluralRule count="other"> @integer 2~17, 100, 1000, 10000, 100000, 1000000, … @decimal 1.1~2.6, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
2424
</pluralRules>
@@ -46,7 +46,7 @@ For terms of use, see http://www.unicode.org/copyright.html
4646
<pluralRule count="one">n = 0..1 or n = 11..99 @integer 0, 1, 11~24 @decimal 0.0, 1.0, 11.0, 12.0, 13.0, 14.0, 15.0, 16.0, 17.0, 18.0, 19.0, 20.0, 21.0, 22.0, 23.0, 24.0</pluralRule>
4747
<pluralRule count="other"> @integer 2~10, 100~106, 1000, 10000, 100000, 1000000, … @decimal 0.1~0.9, 1.1~1.7, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
4848
</pluralRules>
49-
<pluralRules locales="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">
49+
<pluralRules locales="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">
5050
<pluralRule count="one">n = 1 @integer 1 @decimal 1.0, 1.00, 1.000, 1.0000</pluralRule>
5151
<pluralRule count="other"> @integer 0, 2~16, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~0.9, 1.1~1.6, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
5252
</pluralRules>
@@ -62,7 +62,7 @@ For terms of use, see http://www.unicode.org/copyright.html
6262
<pluralRule count="one">v = 0 and i % 10 = 1 and i % 100 != 11 or f % 10 = 1 and f % 100 != 11 @integer 1, 21, 31, 41, 51, 61, 71, 81, 101, 1001, … @decimal 0.1, 1.1, 2.1, 3.1, 4.1, 5.1, 6.1, 7.1, 10.1, 100.1, 1000.1, …</pluralRule>
6363
<pluralRule count="other"> @integer 0, 2~16, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0, 0.2~1.0, 1.2~1.7, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
6464
</pluralRules>
65-
<pluralRules locales="fil tl">
65+
<pluralRules locales="ceb fil tl">
6666
<pluralRule count="one">v = 0 and i = 1,2,3 or v = 0 and i % 10 != 4,6,9 or v != 0 and f % 10 != 4,6,9 @integer 0~3, 5, 7, 8, 10~13, 15, 17, 18, 20, 21, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~0.3, 0.5, 0.7, 0.8, 1.0~1.3, 1.5, 1.7, 1.8, 2.0, 2.1, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
6767
<pluralRule count="other"> @integer 4, 6, 9, 14, 16, 19, 24, 26, 104, 1004, … @decimal 0.4, 0.6, 0.9, 1.4, 1.6, 1.9, 2.4, 2.6, 10.4, 100.4, 1000.4, …</pluralRule>
6868
</pluralRules>
@@ -87,7 +87,7 @@ For terms of use, see http://www.unicode.org/copyright.html
8787

8888
<!-- 3: one,two,other -->
8989

90-
<pluralRules locales="iu kw naq se sma smi smj smn sms">
90+
<pluralRules locales="iu naq se sma smi smj smn sms">
9191
<pluralRule count="one">n = 1 @integer 1 @decimal 1.0, 1.00, 1.000, 1.0000</pluralRule>
9292
<pluralRule count="two">n = 2 @integer 2 @decimal 2.0, 2.00, 2.000, 2.0000</pluralRule>
9393
<pluralRule count="other"> @integer 0, 3~17, 100, 1000, 10000, 100000, 1000000, … @decimal 0.0~0.9, 1.1~1.6, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
@@ -102,7 +102,7 @@ For terms of use, see http://www.unicode.org/copyright.html
102102
</pluralRules>
103103
<pluralRules locales="mo ro">
104104
<pluralRule count="one">i = 1 and v = 0 @integer 1</pluralRule>
105-
<pluralRule count="few">v != 0 or n = 0 or n != 1 and n % 100 = 1..19 @integer 0, 2~16, 101, 1001, … @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
105+
<pluralRule count="few">v != 0 or n = 0 or n % 100 = 2..19 @integer 0, 2~16, 102, 1002, … @decimal 0.0~1.5, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
106106
<pluralRule count="other"> @integer 20~35, 100, 1000, 10000, 100000, 1000000, …</pluralRule>
107107
</pluralRules>
108108
<pluralRules locales="bs hr sh sr">
@@ -222,5 +222,13 @@ For terms of use, see http://www.unicode.org/copyright.html
222222
<pluralRule count="many">n = 6 @integer 6 @decimal 6.0, 6.00, 6.000, 6.0000</pluralRule>
223223
<pluralRule count="other"> @integer 4, 5, 7~20, 100, 1000, 10000, 100000, 1000000, … @decimal 0.1~0.9, 1.1~1.7, 10.0, 100.0, 1000.0, 10000.0, 100000.0, 1000000.0, …</pluralRule>
224224
</pluralRules>
225+
<pluralRules locales="kw">
226+
<pluralRule count="zero">n = 0 @integer 0 @decimal 0.0, 0.00, 0.000, 0.0000</pluralRule>
227+
<pluralRule count="one">n = 1 @integer 1 @decimal 1.0, 1.00, 1.000, 1.0000</pluralRule>
228+
<pluralRule count="two">n % 100 = 2,22,42,62,82 or n%1000 = 0 and n%100000=1000..20000,40000,60000,80000 or n!=0 and n%1000000=100000@integer 2, 22, 42, 62, 82, 102, 122, 142, 1002, … @decimal 2.0, 22.0, 42.0, 62.0, 82.0, 102.0, 122.0, 142.0, 1002.0, …</pluralRule>
229+
<pluralRule count="few">n % 100 = 3,23,43,63,83 @integer 3, 23, 43, 63, 83, 103, 123, 143, 1003, … @decimal 3.0, 23.0, 43.0, 63.0, 83.0, 103.0, 123.0, 143.0, 1003.0, …</pluralRule>
230+
<pluralRule count="many">n != 1 and n % 100 = 1,21,41,61,81 @integer 21, 41, 61, 81, 101, 121, 141, 161, 1001, … @decimal 21.0, 41.0, 61.0, 81.0, 101.0, 121.0, 141.0, 161.0, 1001.0, …</pluralRule>
231+
<pluralRule count="other"> @integer 4~19, 100, 1000000, … @decimal 0.1~0.9, 1.1~1.7, 10.0, 100.0, 1000000.0, …</pluralRule>
232+
</pluralRules>
225233
</plurals>
226234
</supplementalData>

v2/internal/plural/codegen/xml.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ func (pr *PluralRule) DecimalExamples() []string {
7676
return decimal
7777
}
7878

79-
var relationRegexp = regexp.MustCompile("([niftvw])(?: % ([0-9]+))? (!=|=)(.*)")
79+
var relationRegexp = regexp.MustCompile(`([niftvw])(?:\s*%\s*([0-9]+))?\s*(!=|=)(.*)`)
8080

8181
// GoCondition converts the XML condition to valid Go code.
8282
func (pr *PluralRule) GoCondition() string {

v2/internal/plural/rule_gen.go

+34-6
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ func DefaultRules() Rules {
1212
return Other
1313
},
1414
})
15-
addPluralRules(rules, []string{"am", "as", "bn", "fa", "gu", "hi", "kn", "mr", "zu"}, &Rule{
15+
addPluralRules(rules, []string{"am", "as", "bn", "fa", "gu", "hi", "kn", "zu"}, &Rule{
1616
PluralForms: newPluralFormSet(One, Other),
1717
PluralFormFunc: func(ops *Operands) Form {
1818
// i = 0 or n = 1
@@ -85,7 +85,7 @@ func DefaultRules() Rules {
8585
return Other
8686
},
8787
})
88-
addPluralRules(rules, []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"}, &Rule{
88+
addPluralRules(rules, []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"}, &Rule{
8989
PluralForms: newPluralFormSet(One, Other),
9090
PluralFormFunc: func(ops *Operands) Form {
9191
// n = 1
@@ -128,7 +128,7 @@ func DefaultRules() Rules {
128128
return Other
129129
},
130130
})
131-
addPluralRules(rules, []string{"fil", "tl"}, &Rule{
131+
addPluralRules(rules, []string{"ceb", "fil", "tl"}, &Rule{
132132
PluralForms: newPluralFormSet(One, Other),
133133
PluralFormFunc: func(ops *Operands) Form {
134134
// v = 0 and i = 1,2,3 or v = 0 and i % 10 != 4,6,9 or v != 0 and f % 10 != 4,6,9
@@ -186,7 +186,7 @@ func DefaultRules() Rules {
186186
return Other
187187
},
188188
})
189-
addPluralRules(rules, []string{"iu", "kw", "naq", "se", "sma", "smi", "smj", "smn", "sms"}, &Rule{
189+
addPluralRules(rules, []string{"iu", "naq", "se", "sma", "smi", "smj", "smn", "sms"}, &Rule{
190190
PluralForms: newPluralFormSet(One, Two, Other),
191191
PluralFormFunc: func(ops *Operands) Form {
192192
// n = 1
@@ -222,10 +222,10 @@ func DefaultRules() Rules {
222222
if intEqualsAny(ops.I, 1) && intEqualsAny(ops.V, 0) {
223223
return One
224224
}
225-
// v != 0 or n = 0 or n != 1 and n % 100 = 1..19
225+
// v != 0 or n = 0 or n % 100 = 2..19
226226
if !intEqualsAny(ops.V, 0) ||
227227
ops.NEqualsAny(0) ||
228-
!ops.NEqualsAny(1) && ops.NModInRange(100, 1, 19) {
228+
ops.NModInRange(100, 2, 19) {
229229
return Few
230230
}
231231
return Other
@@ -556,6 +556,34 @@ func DefaultRules() Rules {
556556
return Other
557557
},
558558
})
559+
addPluralRules(rules, []string{"kw"}, &Rule{
560+
PluralForms: newPluralFormSet(Zero, One, Two, Few, Many, Other),
561+
PluralFormFunc: func(ops *Operands) Form {
562+
// n = 0
563+
if ops.NEqualsAny(0) {
564+
return Zero
565+
}
566+
// n = 1
567+
if ops.NEqualsAny(1) {
568+
return One
569+
}
570+
// n % 100 = 2,22,42,62,82 or n%1000 = 0 and n%100000=1000..20000,40000,60000,80000 or n!=0 and n%1000000=100000
571+
if ops.NModEqualsAny(100, 2, 22, 42, 62, 82) ||
572+
ops.NModEqualsAny(1000, 0) && (ops.NModInRange(100000, 1000, 20000) || ops.NModEqualsAny(100000, 40000, 60000, 80000)) ||
573+
!ops.NEqualsAny(0) && ops.NModEqualsAny(1000000, 100000) {
574+
return Two
575+
}
576+
// n % 100 = 3,23,43,63,83
577+
if ops.NModEqualsAny(100, 3, 23, 43, 63, 83) {
578+
return Few
579+
}
580+
// n != 1 and n % 100 = 1,21,41,61,81
581+
if !ops.NEqualsAny(1) && ops.NModEqualsAny(100, 1, 21, 41, 61, 81) {
582+
return Many
583+
}
584+
return Other
585+
},
586+
})
559587

560588
return rules
561589
}

v2/internal/plural/rule_gen_test.go

+36-9
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ func TestBmBoDzIdIgIiInJaJboJvJwKdeKeaKmKoLktLoMsMyNqoRootSahSesSgThToViWoYoYueZ
1616
}
1717
}
1818

19-
func TestAmAsBnFaGuHiKnMrZu(t *testing.T) {
19+
func TestAmAsBnFaGuHiKnZu(t *testing.T) {
2020
var tests []pluralFormTest
2121

2222
tests = appendIntegerTests(tests, One, []string{"0", "1"})
@@ -25,7 +25,7 @@ func TestAmAsBnFaGuHiKnMrZu(t *testing.T) {
2525
tests = appendIntegerTests(tests, Other, []string{"2~17", "100", "1000", "10000", "100000", "1000000"})
2626
tests = appendDecimalTests(tests, Other, []string{"1.1~2.6", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"})
2727

28-
locales := []string{"am", "as", "bn", "fa", "gu", "hi", "kn", "mr", "zu"}
28+
locales := []string{"am", "as", "bn", "fa", "gu", "hi", "kn", "zu"}
2929
for _, locale := range locales {
3030
runTests(t, locale, tests)
3131
}
@@ -120,7 +120,7 @@ func TestTzm(t *testing.T) {
120120
}
121121
}
122122

123-
func TestAfAsaAzBemBezBgBrxCeCggChrCkbDvEeElEoEsEuFoFurGswHaHawHuJgoJmcKaKajKcgKkKkjKlKsKsbKuKyLbLgMasMgoMlMnNahNbNdNeNnNnhNoNrNyNynOmOrOsPapPsRmRofRwkSaqSdSdhSehSnSoSqSsSsyStSyrTaTeTeoTigTkTnTrTsUgUzVeVoVunWaeXhXog(t *testing.T) {
123+
func TestAfAsaAzBemBezBgBrxCeCggChrCkbDvEeElEoEsEuFoFurGswHaHawHuJgoJmcKaKajKcgKkKkjKlKsKsbKuKyLbLgMasMgoMlMnMrNahNbNdNeNnNnhNoNrNyNynOmOrOsPapPsRmRofRwkSaqSdSdhSehSnSoSqSsSsyStSyrTaTeTeoTigTkTnTrTsUgUzVeVoVunWaeXhXog(t *testing.T) {
124124
var tests []pluralFormTest
125125

126126
tests = appendIntegerTests(tests, One, []string{"1"})
@@ -129,7 +129,7 @@ func TestAfAsaAzBemBezBgBrxCeCggChrCkbDvEeElEoEsEuFoFurGswHaHawHuJgoJmcKaKajKcgK
129129
tests = appendIntegerTests(tests, Other, []string{"0", "2~16", "100", "1000", "10000", "100000", "1000000"})
130130
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"})
131131

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"}
133133
for _, locale := range locales {
134134
runTests(t, locale, tests)
135135
}
@@ -180,7 +180,7 @@ func TestMk(t *testing.T) {
180180
}
181181
}
182182

183-
func TestFilTl(t *testing.T) {
183+
func TestCebFilTl(t *testing.T) {
184184
var tests []pluralFormTest
185185

186186
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) {
189189
tests = appendIntegerTests(tests, Other, []string{"4", "6", "9", "14", "16", "19", "24", "26", "104", "1004"})
190190
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"})
191191

192-
locales := []string{"fil", "tl"}
192+
locales := []string{"ceb", "fil", "tl"}
193193
for _, locale := range locales {
194194
runTests(t, locale, tests)
195195
}
@@ -249,7 +249,7 @@ func TestKsh(t *testing.T) {
249249
}
250250
}
251251

252-
func TestIuKwNaqSeSmaSmiSmjSmnSms(t *testing.T) {
252+
func TestIuNaqSeSmaSmiSmjSmnSms(t *testing.T) {
253253
var tests []pluralFormTest
254254

255255
tests = appendIntegerTests(tests, One, []string{"1"})
@@ -261,7 +261,7 @@ func TestIuKwNaqSeSmaSmiSmjSmnSms(t *testing.T) {
261261
tests = appendIntegerTests(tests, Other, []string{"0", "3~17", "100", "1000", "10000", "100000", "1000000"})
262262
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"})
263263

264-
locales := []string{"iu", "kw", "naq", "se", "sma", "smi", "smj", "smn", "sms"}
264+
locales := []string{"iu", "naq", "se", "sma", "smi", "smj", "smn", "sms"}
265265
for _, locale := range locales {
266266
runTests(t, locale, tests)
267267
}
@@ -290,7 +290,7 @@ func TestMoRo(t *testing.T) {
290290

291291
tests = appendIntegerTests(tests, One, []string{"1"})
292292

293-
tests = appendIntegerTests(tests, Few, []string{"0", "2~16", "101", "1001"})
293+
tests = appendIntegerTests(tests, Few, []string{"0", "2~16", "102", "1002"})
294294
tests = appendDecimalTests(tests, Few, []string{"0.0~1.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"})
295295

296296
tests = appendIntegerTests(tests, Other, []string{"20~35", "100", "1000", "10000", "100000", "1000000"})
@@ -629,3 +629,30 @@ func TestCy(t *testing.T) {
629629
runTests(t, locale, tests)
630630
}
631631
}
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

Comments
 (0)