| 1 |
// This file is generated by i18n/plural/codegen/generate.sh; DO NOT EDIT |
| 2 |
|
| 3 |
package plural |
| 4 |
|
| 5 |
import "testing" |
| 6 |
|
| 7 |
func TestBmBoDzHnjIdIgIiInJaJboJvJwKdeKeaKmKoLktLoMsMyNqoOsaRootSahSesSgSuThToTpiViWoYoYueZh(t *testing.T) { |
| 8 |
var tests []pluralFormTest |
| 9 |
|
| 10 |
tests = appendIntegerTests(tests, Other, []string{"0~15", "100", "1000", "10000", "100000", "1000000"}) |
| 11 |
tests = appendDecimalTests(tests, Other, []string{"0.0~1.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 12 |
|
| 13 |
locales := []string{"bm", "bo", "dz", "hnj", "id", "ig", "ii", "in", "ja", "jbo", "jv", "jw", "kde", "kea", "km", "ko", "lkt", "lo", "ms", "my", "nqo", "osa", "root", "sah", "ses", "sg", "su", "th", "to", "tpi", "vi", "wo", "yo", "yue", "zh"} |
| 14 |
for _, locale := range locales { |
| 15 |
runTests(t, locale, tests) |
| 16 |
} |
| 17 |
} |
| 18 |
|
| 19 |
func TestAmAsBnDoiFaGuHiKnPcmZu(t *testing.T) { |
| 20 |
var tests []pluralFormTest |
| 21 |
|
| 22 |
tests = appendIntegerTests(tests, One, []string{"0", "1"}) |
| 23 |
tests = appendDecimalTests(tests, One, []string{"0.0~1.0", "0.00~0.04"}) |
| 24 |
|
| 25 |
tests = appendIntegerTests(tests, Other, []string{"2~17", "100", "1000", "10000", "100000", "1000000"}) |
| 26 |
tests = appendDecimalTests(tests, Other, []string{"1.1~2.6", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 27 |
|
| 28 |
locales := []string{"am", "as", "bn", "doi", "fa", "gu", "hi", "kn", "pcm", "zu"} |
| 29 |
for _, locale := range locales { |
| 30 |
runTests(t, locale, tests) |
| 31 |
} |
| 32 |
} |
| 33 |
|
| 34 |
func TestFfHyKab(t *testing.T) { |
| 35 |
var tests []pluralFormTest |
| 36 |
|
| 37 |
tests = appendIntegerTests(tests, One, []string{"0", "1"}) |
| 38 |
tests = appendDecimalTests(tests, One, []string{"0.0~1.5"}) |
| 39 |
|
| 40 |
tests = appendIntegerTests(tests, Other, []string{"2~17", "100", "1000", "10000", "100000", "1000000"}) |
| 41 |
tests = appendDecimalTests(tests, Other, []string{"2.0~3.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 42 |
|
| 43 |
locales := []string{"ff", "hy", "kab"} |
| 44 |
for _, locale := range locales { |
| 45 |
runTests(t, locale, tests) |
| 46 |
} |
| 47 |
} |
| 48 |
|
| 49 |
func TestAstDeEnEtFiFyGlIaIoJiLijNlScSvSwUrYi(t *testing.T) { |
| 50 |
var tests []pluralFormTest |
| 51 |
|
| 52 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 53 |
|
| 54 |
tests = appendIntegerTests(tests, Other, []string{"0", "2~16", "100", "1000", "10000", "100000", "1000000"}) |
| 55 |
tests = appendDecimalTests(tests, Other, []string{"0.0~1.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 56 |
|
| 57 |
locales := []string{"ast", "de", "en", "et", "fi", "fy", "gl", "ia", "io", "ji", "lij", "nl", "sc", "sv", "sw", "ur", "yi"} |
| 58 |
for _, locale := range locales { |
| 59 |
runTests(t, locale, tests) |
| 60 |
} |
| 61 |
} |
| 62 |
|
| 63 |
func TestSi(t *testing.T) { |
| 64 |
var tests []pluralFormTest |
| 65 |
|
| 66 |
tests = appendIntegerTests(tests, One, []string{"0", "1"}) |
| 67 |
tests = appendDecimalTests(tests, One, []string{"0.0", "0.1", "1.0", "0.00", "0.01", "1.00", "0.000", "0.001", "1.000", "0.0000", "0.0001", "1.0000"}) |
| 68 |
|
| 69 |
tests = appendIntegerTests(tests, Other, []string{"2~17", "100", "1000", "10000", "100000", "1000000"}) |
| 70 |
tests = appendDecimalTests(tests, Other, []string{"0.2~0.9", "1.1~1.8", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 71 |
|
| 72 |
locales := []string{"si"} |
| 73 |
for _, locale := range locales { |
| 74 |
runTests(t, locale, tests) |
| 75 |
} |
| 76 |
} |
| 77 |
|
| 78 |
func TestAkBhoCswGuwLnMgNsoPaTiWa(t *testing.T) { |
| 79 |
var tests []pluralFormTest |
| 80 |
|
| 81 |
tests = appendIntegerTests(tests, One, []string{"0", "1"}) |
| 82 |
tests = appendDecimalTests(tests, One, []string{"0.0", "1.0", "0.00", "1.00", "0.000", "1.000", "0.0000", "1.0000"}) |
| 83 |
|
| 84 |
tests = appendIntegerTests(tests, Other, []string{"2~17", "100", "1000", "10000", "100000", "1000000"}) |
| 85 |
tests = appendDecimalTests(tests, Other, []string{"0.1~0.9", "1.1~1.7", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 86 |
|
| 87 |
locales := []string{"ak", "bho", "csw", "guw", "ln", "mg", "nso", "pa", "ti", "wa"} |
| 88 |
for _, locale := range locales { |
| 89 |
runTests(t, locale, tests) |
| 90 |
} |
| 91 |
} |
| 92 |
|
| 93 |
func TestTzm(t *testing.T) { |
| 94 |
var tests []pluralFormTest |
| 95 |
|
| 96 |
tests = appendIntegerTests(tests, One, []string{"0", "1", "11~24"}) |
| 97 |
tests = appendDecimalTests(tests, One, []string{"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"}) |
| 98 |
|
| 99 |
tests = appendIntegerTests(tests, Other, []string{"2~10", "100~106", "1000", "10000", "100000", "1000000"}) |
| 100 |
tests = appendDecimalTests(tests, Other, []string{"0.1~0.9", "1.1~1.7", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 101 |
|
| 102 |
locales := []string{"tzm"} |
| 103 |
for _, locale := range locales { |
| 104 |
runTests(t, locale, tests) |
| 105 |
} |
| 106 |
} |
| 107 |
|
| 108 |
func TestAfAnAsaAzBalBemBezBgBrxCeCggChrCkbDvEeElEoEuFoFurGswHaHawHuJgoJmcKaKajKcgKkKkjKlKsKsbKuKyLbLgMasMgoMlMnMrNahNbNdNeNnNnhNoNrNyNynOmOrOsPapPsRmRofRwkSaqSdSdhSehSnSoSqSsSsyStSyrTaTeTeoTigTkTnTrTsUgUzVeVoVunWaeXhXog(t *testing.T) { |
| 109 |
var tests []pluralFormTest |
| 110 |
|
| 111 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 112 |
tests = appendDecimalTests(tests, One, []string{"1.0", "1.00", "1.000", "1.0000"}) |
| 113 |
|
| 114 |
tests = appendIntegerTests(tests, Other, []string{"0", "2~16", "100", "1000", "10000", "100000", "1000000"}) |
| 115 |
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"}) |
| 116 |
|
| 117 |
locales := []string{"af", "an", "asa", "az", "bal", "bem", "bez", "bg", "brx", "ce", "cgg", "chr", "ckb", "dv", "ee", "el", "eo", "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"} |
| 118 |
for _, locale := range locales { |
| 119 |
runTests(t, locale, tests) |
| 120 |
} |
| 121 |
} |
| 122 |
|
| 123 |
func TestDa(t *testing.T) { |
| 124 |
var tests []pluralFormTest |
| 125 |
|
| 126 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 127 |
tests = appendDecimalTests(tests, One, []string{"0.1~1.6"}) |
| 128 |
|
| 129 |
tests = appendIntegerTests(tests, Other, []string{"0", "2~16", "100", "1000", "10000", "100000", "1000000"}) |
| 130 |
tests = appendDecimalTests(tests, Other, []string{"0.0", "2.0~3.4", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 131 |
|
| 132 |
locales := []string{"da"} |
| 133 |
for _, locale := range locales { |
| 134 |
runTests(t, locale, tests) |
| 135 |
} |
| 136 |
} |
| 137 |
|
| 138 |
func TestIs(t *testing.T) { |
| 139 |
var tests []pluralFormTest |
| 140 |
|
| 141 |
tests = appendIntegerTests(tests, One, []string{"1", "21", "31", "41", "51", "61", "71", "81", "101", "1001"}) |
| 142 |
tests = appendDecimalTests(tests, One, []string{"0.1", "1.0", "1.1", "2.1", "3.1", "4.1", "5.1", "6.1", "7.1", "10.1", "100.1", "1000.1"}) |
| 143 |
|
| 144 |
tests = appendIntegerTests(tests, Other, []string{"0", "2~16", "100", "1000", "10000", "100000", "1000000"}) |
| 145 |
tests = appendDecimalTests(tests, Other, []string{"0.0", "0.2~0.9", "1.2~1.8", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 146 |
|
| 147 |
locales := []string{"is"} |
| 148 |
for _, locale := range locales { |
| 149 |
runTests(t, locale, tests) |
| 150 |
} |
| 151 |
} |
| 152 |
|
| 153 |
func TestMk(t *testing.T) { |
| 154 |
var tests []pluralFormTest |
| 155 |
|
| 156 |
tests = appendIntegerTests(tests, One, []string{"1", "21", "31", "41", "51", "61", "71", "81", "101", "1001"}) |
| 157 |
tests = appendDecimalTests(tests, One, []string{"0.1", "1.1", "2.1", "3.1", "4.1", "5.1", "6.1", "7.1", "10.1", "100.1", "1000.1"}) |
| 158 |
|
| 159 |
tests = appendIntegerTests(tests, Other, []string{"0", "2~16", "100", "1000", "10000", "100000", "1000000"}) |
| 160 |
tests = appendDecimalTests(tests, Other, []string{"0.0", "0.2~1.0", "1.2~1.7", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 161 |
|
| 162 |
locales := []string{"mk"} |
| 163 |
for _, locale := range locales { |
| 164 |
runTests(t, locale, tests) |
| 165 |
} |
| 166 |
} |
| 167 |
|
| 168 |
func TestCebFilTl(t *testing.T) { |
| 169 |
var tests []pluralFormTest |
| 170 |
|
| 171 |
tests = appendIntegerTests(tests, One, []string{"0~3", "5", "7", "8", "10~13", "15", "17", "18", "20", "21", "100", "1000", "10000", "100000", "1000000"}) |
| 172 |
tests = appendDecimalTests(tests, One, []string{"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"}) |
| 173 |
|
| 174 |
tests = appendIntegerTests(tests, Other, []string{"4", "6", "9", "14", "16", "19", "24", "26", "104", "1004"}) |
| 175 |
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"}) |
| 176 |
|
| 177 |
locales := []string{"ceb", "fil", "tl"} |
| 178 |
for _, locale := range locales { |
| 179 |
runTests(t, locale, tests) |
| 180 |
} |
| 181 |
} |
| 182 |
|
| 183 |
func TestLvPrg(t *testing.T) { |
| 184 |
var tests []pluralFormTest |
| 185 |
|
| 186 |
tests = appendIntegerTests(tests, Zero, []string{"0", "10~20", "30", "40", "50", "60", "100", "1000", "10000", "100000", "1000000"}) |
| 187 |
tests = appendDecimalTests(tests, Zero, []string{"0.0", "10.0", "11.0", "12.0", "13.0", "14.0", "15.0", "16.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 188 |
|
| 189 |
tests = appendIntegerTests(tests, One, []string{"1", "21", "31", "41", "51", "61", "71", "81", "101", "1001"}) |
| 190 |
tests = appendDecimalTests(tests, One, []string{"0.1", "1.0", "1.1", "2.1", "3.1", "4.1", "5.1", "6.1", "7.1", "10.1", "100.1", "1000.1"}) |
| 191 |
|
| 192 |
tests = appendIntegerTests(tests, Other, []string{"2~9", "22~29", "102", "1002"}) |
| 193 |
tests = appendDecimalTests(tests, Other, []string{"0.2~0.9", "1.2~1.9", "10.2", "100.2", "1000.2"}) |
| 194 |
|
| 195 |
locales := []string{"lv", "prg"} |
| 196 |
for _, locale := range locales { |
| 197 |
runTests(t, locale, tests) |
| 198 |
} |
| 199 |
} |
| 200 |
|
| 201 |
func TestLag(t *testing.T) { |
| 202 |
var tests []pluralFormTest |
| 203 |
|
| 204 |
tests = appendIntegerTests(tests, Zero, []string{"0"}) |
| 205 |
tests = appendDecimalTests(tests, Zero, []string{"0.0", "0.00", "0.000", "0.0000"}) |
| 206 |
|
| 207 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 208 |
tests = appendDecimalTests(tests, One, []string{"0.1~1.6"}) |
| 209 |
|
| 210 |
tests = appendIntegerTests(tests, Other, []string{"2~17", "100", "1000", "10000", "100000", "1000000"}) |
| 211 |
tests = appendDecimalTests(tests, Other, []string{"2.0~3.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 212 |
|
| 213 |
locales := []string{"lag"} |
| 214 |
for _, locale := range locales { |
| 215 |
runTests(t, locale, tests) |
| 216 |
} |
| 217 |
} |
| 218 |
|
| 219 |
func TestBlo(t *testing.T) { |
| 220 |
var tests []pluralFormTest |
| 221 |
|
| 222 |
tests = appendIntegerTests(tests, Zero, []string{"0"}) |
| 223 |
tests = appendDecimalTests(tests, Zero, []string{"0.0", "0.00", "0.000", "0.0000"}) |
| 224 |
|
| 225 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 226 |
tests = appendDecimalTests(tests, One, []string{"1.0", "1.00", "1.000", "1.0000"}) |
| 227 |
|
| 228 |
tests = appendIntegerTests(tests, Other, []string{"2~17", "100", "1000", "10000", "100000", "1000000"}) |
| 229 |
tests = appendDecimalTests(tests, Other, []string{"0.1~0.9", "1.1~1.7", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 230 |
|
| 231 |
locales := []string{"blo"} |
| 232 |
for _, locale := range locales { |
| 233 |
runTests(t, locale, tests) |
| 234 |
} |
| 235 |
} |
| 236 |
|
| 237 |
func TestKsh(t *testing.T) { |
| 238 |
var tests []pluralFormTest |
| 239 |
|
| 240 |
tests = appendIntegerTests(tests, Zero, []string{"0"}) |
| 241 |
tests = appendDecimalTests(tests, Zero, []string{"0.0", "0.00", "0.000", "0.0000"}) |
| 242 |
|
| 243 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 244 |
tests = appendDecimalTests(tests, One, []string{"1.0", "1.00", "1.000", "1.0000"}) |
| 245 |
|
| 246 |
tests = appendIntegerTests(tests, Other, []string{"2~17", "100", "1000", "10000", "100000", "1000000"}) |
| 247 |
tests = appendDecimalTests(tests, Other, []string{"0.1~0.9", "1.1~1.7", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 248 |
|
| 249 |
locales := []string{"ksh"} |
| 250 |
for _, locale := range locales { |
| 251 |
runTests(t, locale, tests) |
| 252 |
} |
| 253 |
} |
| 254 |
|
| 255 |
func TestHeIw(t *testing.T) { |
| 256 |
var tests []pluralFormTest |
| 257 |
|
| 258 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 259 |
tests = appendDecimalTests(tests, One, []string{"0.0~0.9", "0.00~0.05"}) |
| 260 |
|
| 261 |
tests = appendIntegerTests(tests, Two, []string{"2"}) |
| 262 |
|
| 263 |
tests = appendIntegerTests(tests, Other, []string{"0", "3~17", "100", "1000", "10000", "100000", "1000000"}) |
| 264 |
tests = appendDecimalTests(tests, Other, []string{"1.0~2.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 265 |
|
| 266 |
locales := []string{"he", "iw"} |
| 267 |
for _, locale := range locales { |
| 268 |
runTests(t, locale, tests) |
| 269 |
} |
| 270 |
} |
| 271 |
|
| 272 |
func TestIuNaqSatSeSmaSmiSmjSmnSms(t *testing.T) { |
| 273 |
var tests []pluralFormTest |
| 274 |
|
| 275 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 276 |
tests = appendDecimalTests(tests, One, []string{"1.0", "1.00", "1.000", "1.0000"}) |
| 277 |
|
| 278 |
tests = appendIntegerTests(tests, Two, []string{"2"}) |
| 279 |
tests = appendDecimalTests(tests, Two, []string{"2.0", "2.00", "2.000", "2.0000"}) |
| 280 |
|
| 281 |
tests = appendIntegerTests(tests, Other, []string{"0", "3~17", "100", "1000", "10000", "100000", "1000000"}) |
| 282 |
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"}) |
| 283 |
|
| 284 |
locales := []string{"iu", "naq", "sat", "se", "sma", "smi", "smj", "smn", "sms"} |
| 285 |
for _, locale := range locales { |
| 286 |
runTests(t, locale, tests) |
| 287 |
} |
| 288 |
} |
| 289 |
|
| 290 |
func TestShi(t *testing.T) { |
| 291 |
var tests []pluralFormTest |
| 292 |
|
| 293 |
tests = appendIntegerTests(tests, One, []string{"0", "1"}) |
| 294 |
tests = appendDecimalTests(tests, One, []string{"0.0~1.0", "0.00~0.04"}) |
| 295 |
|
| 296 |
tests = appendIntegerTests(tests, Few, []string{"2~10"}) |
| 297 |
tests = appendDecimalTests(tests, Few, []string{"2.0", "3.0", "4.0", "5.0", "6.0", "7.0", "8.0", "9.0", "10.0", "2.00", "3.00", "4.00", "5.00", "6.00", "7.00", "8.00"}) |
| 298 |
|
| 299 |
tests = appendIntegerTests(tests, Other, []string{"11~26", "100", "1000", "10000", "100000", "1000000"}) |
| 300 |
tests = appendDecimalTests(tests, Other, []string{"1.1~1.9", "2.1~2.7", "10.1", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 301 |
|
| 302 |
locales := []string{"shi"} |
| 303 |
for _, locale := range locales { |
| 304 |
runTests(t, locale, tests) |
| 305 |
} |
| 306 |
} |
| 307 |
|
| 308 |
func TestMoRo(t *testing.T) { |
| 309 |
var tests []pluralFormTest |
| 310 |
|
| 311 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 312 |
|
| 313 |
tests = appendIntegerTests(tests, Few, []string{"0", "2~16", "101", "1001"}) |
| 314 |
tests = appendDecimalTests(tests, Few, []string{"0.0~1.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 315 |
|
| 316 |
tests = appendIntegerTests(tests, Other, []string{"20~35", "100", "1000", "10000", "100000", "1000000"}) |
| 317 |
|
| 318 |
locales := []string{"mo", "ro"} |
| 319 |
for _, locale := range locales { |
| 320 |
runTests(t, locale, tests) |
| 321 |
} |
| 322 |
} |
| 323 |
|
| 324 |
func TestBsHrShSr(t *testing.T) { |
| 325 |
var tests []pluralFormTest |
| 326 |
|
| 327 |
tests = appendIntegerTests(tests, One, []string{"1", "21", "31", "41", "51", "61", "71", "81", "101", "1001"}) |
| 328 |
tests = appendDecimalTests(tests, One, []string{"0.1", "1.1", "2.1", "3.1", "4.1", "5.1", "6.1", "7.1", "10.1", "100.1", "1000.1"}) |
| 329 |
|
| 330 |
tests = appendIntegerTests(tests, Few, []string{"2~4", "22~24", "32~34", "42~44", "52~54", "62", "102", "1002"}) |
| 331 |
tests = appendDecimalTests(tests, Few, []string{"0.2~0.4", "1.2~1.4", "2.2~2.4", "3.2~3.4", "4.2~4.4", "5.2", "10.2", "100.2", "1000.2"}) |
| 332 |
|
| 333 |
tests = appendIntegerTests(tests, Other, []string{"0", "5~19", "100", "1000", "10000", "100000", "1000000"}) |
| 334 |
tests = appendDecimalTests(tests, Other, []string{"0.0", "0.5~1.0", "1.5~2.0", "2.5~2.7", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 335 |
|
| 336 |
locales := []string{"bs", "hr", "sh", "sr"} |
| 337 |
for _, locale := range locales { |
| 338 |
runTests(t, locale, tests) |
| 339 |
} |
| 340 |
} |
| 341 |
|
| 342 |
func TestFr(t *testing.T) { |
| 343 |
var tests []pluralFormTest |
| 344 |
|
| 345 |
tests = appendIntegerTests(tests, One, []string{"0", "1"}) |
| 346 |
tests = appendDecimalTests(tests, One, []string{"0.0~1.5"}) |
| 347 |
|
| 348 |
tests = appendIntegerTests(tests, Many, []string{"1000000", "1000000", "2000000", "3000000", "4000000", "5000000", "6000000"}) |
| 349 |
tests = appendDecimalTests(tests, Many, []string{"1.0000001e6", "1.1e6", "2.0000001e6", "2.1e6", "3.0000001e6", "3.1e6"}) |
| 350 |
|
| 351 |
tests = appendIntegerTests(tests, Other, []string{"2~17", "100", "1000", "10000", "100000", "1000", "2000", "3000", "4000", "5000", "6000"}) |
| 352 |
tests = appendDecimalTests(tests, Other, []string{"2.0~3.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0", "1.0001e3", "1.1e3", "2.0001e3", "2.1e3", "3.0001e3", "3.1e3"}) |
| 353 |
|
| 354 |
locales := []string{"fr"} |
| 355 |
for _, locale := range locales { |
| 356 |
runTests(t, locale, tests) |
| 357 |
} |
| 358 |
} |
| 359 |
|
| 360 |
func TestPt(t *testing.T) { |
| 361 |
var tests []pluralFormTest |
| 362 |
|
| 363 |
tests = appendIntegerTests(tests, One, []string{"0", "1"}) |
| 364 |
tests = appendDecimalTests(tests, One, []string{"0.0~1.5"}) |
| 365 |
|
| 366 |
tests = appendIntegerTests(tests, Many, []string{"1000000", "1000000", "2000000", "3000000", "4000000", "5000000", "6000000"}) |
| 367 |
tests = appendDecimalTests(tests, Many, []string{"1.0000001e6", "1.1e6", "2.0000001e6", "2.1e6", "3.0000001e6", "3.1e6"}) |
| 368 |
|
| 369 |
tests = appendIntegerTests(tests, Other, []string{"2~17", "100", "1000", "10000", "100000", "1000", "2000", "3000", "4000", "5000", "6000"}) |
| 370 |
tests = appendDecimalTests(tests, Other, []string{"2.0~3.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0", "1.0001e3", "1.1e3", "2.0001e3", "2.1e3", "3.0001e3", "3.1e3"}) |
| 371 |
|
| 372 |
locales := []string{"pt"} |
| 373 |
for _, locale := range locales { |
| 374 |
runTests(t, locale, tests) |
| 375 |
} |
| 376 |
} |
| 377 |
|
| 378 |
func TestCaItLldPt_ptScnVec(t *testing.T) { |
| 379 |
var tests []pluralFormTest |
| 380 |
|
| 381 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 382 |
|
| 383 |
tests = appendIntegerTests(tests, Many, []string{"1000000", "1000000", "2000000", "3000000", "4000000", "5000000", "6000000"}) |
| 384 |
tests = appendDecimalTests(tests, Many, []string{"1.0000001e6", "1.1e6", "2.0000001e6", "2.1e6", "3.0000001e6", "3.1e6"}) |
| 385 |
|
| 386 |
tests = appendIntegerTests(tests, Other, []string{"0", "2~16", "100", "1000", "10000", "100000", "1000", "2000", "3000", "4000", "5000", "6000"}) |
| 387 |
tests = appendDecimalTests(tests, Other, []string{"0.0~1.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0", "1.0001e3", "1.1e3", "2.0001e3", "2.1e3", "3.0001e3", "3.1e3"}) |
| 388 |
|
| 389 |
locales := []string{"ca", "it", "lld", "pt_PT", "scn", "vec"} |
| 390 |
for _, locale := range locales { |
| 391 |
runTests(t, locale, tests) |
| 392 |
} |
| 393 |
} |
| 394 |
|
| 395 |
func TestEs(t *testing.T) { |
| 396 |
var tests []pluralFormTest |
| 397 |
|
| 398 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 399 |
tests = appendDecimalTests(tests, One, []string{"1.0", "1.00", "1.000", "1.0000"}) |
| 400 |
|
| 401 |
tests = appendIntegerTests(tests, Many, []string{"1000000", "1000000", "2000000", "3000000", "4000000", "5000000", "6000000"}) |
| 402 |
tests = appendDecimalTests(tests, Many, []string{"1.0000001e6", "1.1e6", "2.0000001e6", "2.1e6", "3.0000001e6", "3.1e6"}) |
| 403 |
|
| 404 |
tests = appendIntegerTests(tests, Other, []string{"0", "2~16", "100", "1000", "10000", "100000", "1000", "2000", "3000", "4000", "5000", "6000"}) |
| 405 |
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", "1.0001e3", "1.1e3", "2.0001e3", "2.1e3", "3.0001e3", "3.1e3"}) |
| 406 |
|
| 407 |
locales := []string{"es"} |
| 408 |
for _, locale := range locales { |
| 409 |
runTests(t, locale, tests) |
| 410 |
} |
| 411 |
} |
| 412 |
|
| 413 |
func TestGd(t *testing.T) { |
| 414 |
var tests []pluralFormTest |
| 415 |
|
| 416 |
tests = appendIntegerTests(tests, One, []string{"1", "11"}) |
| 417 |
tests = appendDecimalTests(tests, One, []string{"1.0", "11.0", "1.00", "11.00", "1.000", "11.000", "1.0000"}) |
| 418 |
|
| 419 |
tests = appendIntegerTests(tests, Two, []string{"2", "12"}) |
| 420 |
tests = appendDecimalTests(tests, Two, []string{"2.0", "12.0", "2.00", "12.00", "2.000", "12.000", "2.0000"}) |
| 421 |
|
| 422 |
tests = appendIntegerTests(tests, Few, []string{"3~10", "13~19"}) |
| 423 |
tests = appendDecimalTests(tests, Few, []string{"3.0", "4.0", "5.0", "6.0", "7.0", "8.0", "9.0", "10.0", "13.0", "14.0", "15.0", "16.0", "17.0", "18.0", "19.0", "3.00"}) |
| 424 |
|
| 425 |
tests = appendIntegerTests(tests, Other, []string{"0", "20~34", "100", "1000", "10000", "100000", "1000000"}) |
| 426 |
tests = appendDecimalTests(tests, Other, []string{"0.0~0.9", "1.1~1.6", "10.1", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 427 |
|
| 428 |
locales := []string{"gd"} |
| 429 |
for _, locale := range locales { |
| 430 |
runTests(t, locale, tests) |
| 431 |
} |
| 432 |
} |
| 433 |
|
| 434 |
func TestSl(t *testing.T) { |
| 435 |
var tests []pluralFormTest |
| 436 |
|
| 437 |
tests = appendIntegerTests(tests, One, []string{"1", "101", "201", "301", "401", "501", "601", "701", "1001"}) |
| 438 |
|
| 439 |
tests = appendIntegerTests(tests, Two, []string{"2", "102", "202", "302", "402", "502", "602", "702", "1002"}) |
| 440 |
|
| 441 |
tests = appendIntegerTests(tests, Few, []string{"3", "4", "103", "104", "203", "204", "303", "304", "403", "404", "503", "504", "603", "604", "703", "704", "1003"}) |
| 442 |
tests = appendDecimalTests(tests, Few, []string{"0.0~1.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 443 |
|
| 444 |
tests = appendIntegerTests(tests, Other, []string{"0", "5~19", "100", "1000", "10000", "100000", "1000000"}) |
| 445 |
|
| 446 |
locales := []string{"sl"} |
| 447 |
for _, locale := range locales { |
| 448 |
runTests(t, locale, tests) |
| 449 |
} |
| 450 |
} |
| 451 |
|
| 452 |
func TestDsbHsb(t *testing.T) { |
| 453 |
var tests []pluralFormTest |
| 454 |
|
| 455 |
tests = appendIntegerTests(tests, One, []string{"1", "101", "201", "301", "401", "501", "601", "701", "1001"}) |
| 456 |
tests = appendDecimalTests(tests, One, []string{"0.1", "1.1", "2.1", "3.1", "4.1", "5.1", "6.1", "7.1", "10.1", "100.1", "1000.1"}) |
| 457 |
|
| 458 |
tests = appendIntegerTests(tests, Two, []string{"2", "102", "202", "302", "402", "502", "602", "702", "1002"}) |
| 459 |
tests = appendDecimalTests(tests, Two, []string{"0.2", "1.2", "2.2", "3.2", "4.2", "5.2", "6.2", "7.2", "10.2", "100.2", "1000.2"}) |
| 460 |
|
| 461 |
tests = appendIntegerTests(tests, Few, []string{"3", "4", "103", "104", "203", "204", "303", "304", "403", "404", "503", "504", "603", "604", "703", "704", "1003"}) |
| 462 |
tests = appendDecimalTests(tests, Few, []string{"0.3", "0.4", "1.3", "1.4", "2.3", "2.4", "3.3", "3.4", "4.3", "4.4", "5.3", "5.4", "6.3", "6.4", "7.3", "7.4", "10.3", "100.3", "1000.3"}) |
| 463 |
|
| 464 |
tests = appendIntegerTests(tests, Other, []string{"0", "5~19", "100", "1000", "10000", "100000", "1000000"}) |
| 465 |
tests = appendDecimalTests(tests, Other, []string{"0.0", "0.5~1.0", "1.5~2.0", "2.5~2.7", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 466 |
|
| 467 |
locales := []string{"dsb", "hsb"} |
| 468 |
for _, locale := range locales { |
| 469 |
runTests(t, locale, tests) |
| 470 |
} |
| 471 |
} |
| 472 |
|
| 473 |
func TestCsSk(t *testing.T) { |
| 474 |
var tests []pluralFormTest |
| 475 |
|
| 476 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 477 |
|
| 478 |
tests = appendIntegerTests(tests, Few, []string{"2~4"}) |
| 479 |
|
| 480 |
tests = appendDecimalTests(tests, Many, []string{"0.0~1.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 481 |
|
| 482 |
tests = appendIntegerTests(tests, Other, []string{"0", "5~19", "100", "1000", "10000", "100000", "1000000"}) |
| 483 |
|
| 484 |
locales := []string{"cs", "sk"} |
| 485 |
for _, locale := range locales { |
| 486 |
runTests(t, locale, tests) |
| 487 |
} |
| 488 |
} |
| 489 |
|
| 490 |
func TestPl(t *testing.T) { |
| 491 |
var tests []pluralFormTest |
| 492 |
|
| 493 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 494 |
|
| 495 |
tests = appendIntegerTests(tests, Few, []string{"2~4", "22~24", "32~34", "42~44", "52~54", "62", "102", "1002"}) |
| 496 |
|
| 497 |
tests = appendIntegerTests(tests, Many, []string{"0", "5~19", "100", "1000", "10000", "100000", "1000000"}) |
| 498 |
|
| 499 |
tests = appendDecimalTests(tests, Other, []string{"0.0~1.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 500 |
|
| 501 |
locales := []string{"pl"} |
| 502 |
for _, locale := range locales { |
| 503 |
runTests(t, locale, tests) |
| 504 |
} |
| 505 |
} |
| 506 |
|
| 507 |
func TestBe(t *testing.T) { |
| 508 |
var tests []pluralFormTest |
| 509 |
|
| 510 |
tests = appendIntegerTests(tests, One, []string{"1", "21", "31", "41", "51", "61", "71", "81", "101", "1001"}) |
| 511 |
tests = appendDecimalTests(tests, One, []string{"1.0", "21.0", "31.0", "41.0", "51.0", "61.0", "71.0", "81.0", "101.0", "1001.0"}) |
| 512 |
|
| 513 |
tests = appendIntegerTests(tests, Few, []string{"2~4", "22~24", "32~34", "42~44", "52~54", "62", "102", "1002"}) |
| 514 |
tests = appendDecimalTests(tests, Few, []string{"2.0", "3.0", "4.0", "22.0", "23.0", "24.0", "32.0", "33.0", "102.0", "1002.0"}) |
| 515 |
|
| 516 |
tests = appendIntegerTests(tests, Many, []string{"0", "5~19", "100", "1000", "10000", "100000", "1000000"}) |
| 517 |
tests = appendDecimalTests(tests, Many, []string{"0.0", "5.0", "6.0", "7.0", "8.0", "9.0", "10.0", "11.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 518 |
|
| 519 |
tests = appendDecimalTests(tests, Other, []string{"0.1~0.9", "1.1~1.7", "10.1", "100.1", "1000.1"}) |
| 520 |
|
| 521 |
locales := []string{"be"} |
| 522 |
for _, locale := range locales { |
| 523 |
runTests(t, locale, tests) |
| 524 |
} |
| 525 |
} |
| 526 |
|
| 527 |
func TestLt(t *testing.T) { |
| 528 |
var tests []pluralFormTest |
| 529 |
|
| 530 |
tests = appendIntegerTests(tests, One, []string{"1", "21", "31", "41", "51", "61", "71", "81", "101", "1001"}) |
| 531 |
tests = appendDecimalTests(tests, One, []string{"1.0", "21.0", "31.0", "41.0", "51.0", "61.0", "71.0", "81.0", "101.0", "1001.0"}) |
| 532 |
|
| 533 |
tests = appendIntegerTests(tests, Few, []string{"2~9", "22~29", "102", "1002"}) |
| 534 |
tests = appendDecimalTests(tests, Few, []string{"2.0", "3.0", "4.0", "5.0", "6.0", "7.0", "8.0", "9.0", "22.0", "102.0", "1002.0"}) |
| 535 |
|
| 536 |
tests = appendDecimalTests(tests, Many, []string{"0.1~0.9", "1.1~1.7", "10.1", "100.1", "1000.1"}) |
| 537 |
|
| 538 |
tests = appendIntegerTests(tests, Other, []string{"0", "10~20", "30", "40", "50", "60", "100", "1000", "10000", "100000", "1000000"}) |
| 539 |
tests = appendDecimalTests(tests, Other, []string{"0.0", "10.0", "11.0", "12.0", "13.0", "14.0", "15.0", "16.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 540 |
|
| 541 |
locales := []string{"lt"} |
| 542 |
for _, locale := range locales { |
| 543 |
runTests(t, locale, tests) |
| 544 |
} |
| 545 |
} |
| 546 |
|
| 547 |
func TestRuUk(t *testing.T) { |
| 548 |
var tests []pluralFormTest |
| 549 |
|
| 550 |
tests = appendIntegerTests(tests, One, []string{"1", "21", "31", "41", "51", "61", "71", "81", "101", "1001"}) |
| 551 |
|
| 552 |
tests = appendIntegerTests(tests, Few, []string{"2~4", "22~24", "32~34", "42~44", "52~54", "62", "102", "1002"}) |
| 553 |
|
| 554 |
tests = appendIntegerTests(tests, Many, []string{"0", "5~19", "100", "1000", "10000", "100000", "1000000"}) |
| 555 |
|
| 556 |
tests = appendDecimalTests(tests, Other, []string{"0.0~1.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 557 |
|
| 558 |
locales := []string{"ru", "uk"} |
| 559 |
for _, locale := range locales { |
| 560 |
runTests(t, locale, tests) |
| 561 |
} |
| 562 |
} |
| 563 |
|
| 564 |
func TestBr(t *testing.T) { |
| 565 |
var tests []pluralFormTest |
| 566 |
|
| 567 |
tests = appendIntegerTests(tests, One, []string{"1", "21", "31", "41", "51", "61", "81", "101", "1001"}) |
| 568 |
tests = appendDecimalTests(tests, One, []string{"1.0", "21.0", "31.0", "41.0", "51.0", "61.0", "81.0", "101.0", "1001.0"}) |
| 569 |
|
| 570 |
tests = appendIntegerTests(tests, Two, []string{"2", "22", "32", "42", "52", "62", "82", "102", "1002"}) |
| 571 |
tests = appendDecimalTests(tests, Two, []string{"2.0", "22.0", "32.0", "42.0", "52.0", "62.0", "82.0", "102.0", "1002.0"}) |
| 572 |
|
| 573 |
tests = appendIntegerTests(tests, Few, []string{"3", "4", "9", "23", "24", "29", "33", "34", "39", "43", "44", "49", "103", "1003"}) |
| 574 |
tests = appendDecimalTests(tests, Few, []string{"3.0", "4.0", "9.0", "23.0", "24.0", "29.0", "33.0", "34.0", "103.0", "1003.0"}) |
| 575 |
|
| 576 |
tests = appendIntegerTests(tests, Many, []string{"1000000"}) |
| 577 |
tests = appendDecimalTests(tests, Many, []string{"1000000.0", "1000000.00", "1000000.000", "1000000.0000"}) |
| 578 |
|
| 579 |
tests = appendIntegerTests(tests, Other, []string{"0", "5~8", "10~20", "100", "1000", "10000", "100000"}) |
| 580 |
tests = appendDecimalTests(tests, Other, []string{"0.0~0.9", "1.1~1.6", "10.0", "100.0", "1000.0", "10000.0", "100000.0"}) |
| 581 |
|
| 582 |
locales := []string{"br"} |
| 583 |
for _, locale := range locales { |
| 584 |
runTests(t, locale, tests) |
| 585 |
} |
| 586 |
} |
| 587 |
|
| 588 |
func TestMt(t *testing.T) { |
| 589 |
var tests []pluralFormTest |
| 590 |
|
| 591 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 592 |
tests = appendDecimalTests(tests, One, []string{"1.0", "1.00", "1.000", "1.0000"}) |
| 593 |
|
| 594 |
tests = appendIntegerTests(tests, Two, []string{"2"}) |
| 595 |
tests = appendDecimalTests(tests, Two, []string{"2.0", "2.00", "2.000", "2.0000"}) |
| 596 |
|
| 597 |
tests = appendIntegerTests(tests, Few, []string{"0", "3~10", "103~109", "1003"}) |
| 598 |
tests = appendDecimalTests(tests, Few, []string{"0.0", "3.0", "4.0", "5.0", "6.0", "7.0", "8.0", "9.0", "10.0", "103.0", "1003.0"}) |
| 599 |
|
| 600 |
tests = appendIntegerTests(tests, Many, []string{"11~19", "111~117", "1011"}) |
| 601 |
tests = appendDecimalTests(tests, Many, []string{"11.0", "12.0", "13.0", "14.0", "15.0", "16.0", "17.0", "18.0", "111.0", "1011.0"}) |
| 602 |
|
| 603 |
tests = appendIntegerTests(tests, Other, []string{"20~35", "100", "1000", "10000", "100000", "1000000"}) |
| 604 |
tests = appendDecimalTests(tests, Other, []string{"0.1~0.9", "1.1~1.7", "10.1", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 605 |
|
| 606 |
locales := []string{"mt"} |
| 607 |
for _, locale := range locales { |
| 608 |
runTests(t, locale, tests) |
| 609 |
} |
| 610 |
} |
| 611 |
|
| 612 |
func TestGa(t *testing.T) { |
| 613 |
var tests []pluralFormTest |
| 614 |
|
| 615 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 616 |
tests = appendDecimalTests(tests, One, []string{"1.0", "1.00", "1.000", "1.0000"}) |
| 617 |
|
| 618 |
tests = appendIntegerTests(tests, Two, []string{"2"}) |
| 619 |
tests = appendDecimalTests(tests, Two, []string{"2.0", "2.00", "2.000", "2.0000"}) |
| 620 |
|
| 621 |
tests = appendIntegerTests(tests, Few, []string{"3~6"}) |
| 622 |
tests = appendDecimalTests(tests, Few, []string{"3.0", "4.0", "5.0", "6.0", "3.00", "4.00", "5.00", "6.00", "3.000", "4.000", "5.000", "6.000", "3.0000", "4.0000", "5.0000", "6.0000"}) |
| 623 |
|
| 624 |
tests = appendIntegerTests(tests, Many, []string{"7~10"}) |
| 625 |
tests = appendDecimalTests(tests, Many, []string{"7.0", "8.0", "9.0", "10.0", "7.00", "8.00", "9.00", "10.00", "7.000", "8.000", "9.000", "10.000", "7.0000", "8.0000", "9.0000", "10.0000"}) |
| 626 |
|
| 627 |
tests = appendIntegerTests(tests, Other, []string{"0", "11~25", "100", "1000", "10000", "100000", "1000000"}) |
| 628 |
tests = appendDecimalTests(tests, Other, []string{"0.0~0.9", "1.1~1.6", "10.1", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 629 |
|
| 630 |
locales := []string{"ga"} |
| 631 |
for _, locale := range locales { |
| 632 |
runTests(t, locale, tests) |
| 633 |
} |
| 634 |
} |
| 635 |
|
| 636 |
func TestGv(t *testing.T) { |
| 637 |
var tests []pluralFormTest |
| 638 |
|
| 639 |
tests = appendIntegerTests(tests, One, []string{"1", "11", "21", "31", "41", "51", "61", "71", "101", "1001"}) |
| 640 |
|
| 641 |
tests = appendIntegerTests(tests, Two, []string{"2", "12", "22", "32", "42", "52", "62", "72", "102", "1002"}) |
| 642 |
|
| 643 |
tests = appendIntegerTests(tests, Few, []string{"0", "20", "40", "60", "80", "100", "120", "140", "1000", "10000", "100000", "1000000"}) |
| 644 |
|
| 645 |
tests = appendDecimalTests(tests, Many, []string{"0.0~1.5", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 646 |
|
| 647 |
tests = appendIntegerTests(tests, Other, []string{"3~10", "13~19", "23", "103", "1003"}) |
| 648 |
|
| 649 |
locales := []string{"gv"} |
| 650 |
for _, locale := range locales { |
| 651 |
runTests(t, locale, tests) |
| 652 |
} |
| 653 |
} |
| 654 |
|
| 655 |
func TestKw(t *testing.T) { |
| 656 |
var tests []pluralFormTest |
| 657 |
|
| 658 |
tests = appendIntegerTests(tests, Zero, []string{"0"}) |
| 659 |
tests = appendDecimalTests(tests, Zero, []string{"0.0", "0.00", "0.000", "0.0000"}) |
| 660 |
|
| 661 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 662 |
tests = appendDecimalTests(tests, One, []string{"1.0", "1.00", "1.000", "1.0000"}) |
| 663 |
|
| 664 |
tests = appendIntegerTests(tests, Two, []string{"2", "22", "42", "62", "82", "102", "122", "142", "1000", "10000", "100000"}) |
| 665 |
tests = appendDecimalTests(tests, Two, []string{"2.0", "22.0", "42.0", "62.0", "82.0", "102.0", "122.0", "142.0", "1000.0", "10000.0", "100000.0"}) |
| 666 |
|
| 667 |
tests = appendIntegerTests(tests, Few, []string{"3", "23", "43", "63", "83", "103", "123", "143", "1003"}) |
| 668 |
tests = appendDecimalTests(tests, Few, []string{"3.0", "23.0", "43.0", "63.0", "83.0", "103.0", "123.0", "143.0", "1003.0"}) |
| 669 |
|
| 670 |
tests = appendIntegerTests(tests, Many, []string{"21", "41", "61", "81", "101", "121", "141", "161", "1001"}) |
| 671 |
tests = appendDecimalTests(tests, Many, []string{"21.0", "41.0", "61.0", "81.0", "101.0", "121.0", "141.0", "161.0", "1001.0"}) |
| 672 |
|
| 673 |
tests = appendIntegerTests(tests, Other, []string{"4~19", "100", "1004", "1000000"}) |
| 674 |
tests = appendDecimalTests(tests, Other, []string{"0.1~0.9", "1.1~1.7", "10.0", "100.0", "1000.1", "1000000.0"}) |
| 675 |
|
| 676 |
locales := []string{"kw"} |
| 677 |
for _, locale := range locales { |
| 678 |
runTests(t, locale, tests) |
| 679 |
} |
| 680 |
} |
| 681 |
|
| 682 |
func TestArArs(t *testing.T) { |
| 683 |
var tests []pluralFormTest |
| 684 |
|
| 685 |
tests = appendIntegerTests(tests, Zero, []string{"0"}) |
| 686 |
tests = appendDecimalTests(tests, Zero, []string{"0.0", "0.00", "0.000", "0.0000"}) |
| 687 |
|
| 688 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 689 |
tests = appendDecimalTests(tests, One, []string{"1.0", "1.00", "1.000", "1.0000"}) |
| 690 |
|
| 691 |
tests = appendIntegerTests(tests, Two, []string{"2"}) |
| 692 |
tests = appendDecimalTests(tests, Two, []string{"2.0", "2.00", "2.000", "2.0000"}) |
| 693 |
|
| 694 |
tests = appendIntegerTests(tests, Few, []string{"3~10", "103~110", "1003"}) |
| 695 |
tests = appendDecimalTests(tests, Few, []string{"3.0", "4.0", "5.0", "6.0", "7.0", "8.0", "9.0", "10.0", "103.0", "1003.0"}) |
| 696 |
|
| 697 |
tests = appendIntegerTests(tests, Many, []string{"11~26", "111", "1011"}) |
| 698 |
tests = appendDecimalTests(tests, Many, []string{"11.0", "12.0", "13.0", "14.0", "15.0", "16.0", "17.0", "18.0", "111.0", "1011.0"}) |
| 699 |
|
| 700 |
tests = appendIntegerTests(tests, Other, []string{"100~102", "200~202", "300~302", "400~402", "500~502", "600", "1000", "10000", "100000", "1000000"}) |
| 701 |
tests = appendDecimalTests(tests, Other, []string{"0.1~0.9", "1.1~1.7", "10.1", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 702 |
|
| 703 |
locales := []string{"ar", "ars"} |
| 704 |
for _, locale := range locales { |
| 705 |
runTests(t, locale, tests) |
| 706 |
} |
| 707 |
} |
| 708 |
|
| 709 |
func TestCy(t *testing.T) { |
| 710 |
var tests []pluralFormTest |
| 711 |
|
| 712 |
tests = appendIntegerTests(tests, Zero, []string{"0"}) |
| 713 |
tests = appendDecimalTests(tests, Zero, []string{"0.0", "0.00", "0.000", "0.0000"}) |
| 714 |
|
| 715 |
tests = appendIntegerTests(tests, One, []string{"1"}) |
| 716 |
tests = appendDecimalTests(tests, One, []string{"1.0", "1.00", "1.000", "1.0000"}) |
| 717 |
|
| 718 |
tests = appendIntegerTests(tests, Two, []string{"2"}) |
| 719 |
tests = appendDecimalTests(tests, Two, []string{"2.0", "2.00", "2.000", "2.0000"}) |
| 720 |
|
| 721 |
tests = appendIntegerTests(tests, Few, []string{"3"}) |
| 722 |
tests = appendDecimalTests(tests, Few, []string{"3.0", "3.00", "3.000", "3.0000"}) |
| 723 |
|
| 724 |
tests = appendIntegerTests(tests, Many, []string{"6"}) |
| 725 |
tests = appendDecimalTests(tests, Many, []string{"6.0", "6.00", "6.000", "6.0000"}) |
| 726 |
|
| 727 |
tests = appendIntegerTests(tests, Other, []string{"4", "5", "7~20", "100", "1000", "10000", "100000", "1000000"}) |
| 728 |
tests = appendDecimalTests(tests, Other, []string{"0.1~0.9", "1.1~1.7", "10.0", "100.0", "1000.0", "10000.0", "100000.0", "1000000.0"}) |
| 729 |
|
| 730 |
locales := []string{"cy"} |
| 731 |
for _, locale := range locales { |
| 732 |
runTests(t, locale, tests) |
| 733 |
} |
| 734 |
} |