1 # © 2017 and later: Unicode, Inc. and others.
2 # License & terms of use: http://www.unicode.org/copyright.html#License
4 # Data-driven test for the language/locale matcher.
7 # Everything after "#" is a comment.
8 # ** test: This line starts a group of test cases.
10 # Lines starting with an '@' sign provide matcher parameters.
11 # @supported=<comma-separated supported languages>
12 # @default=<default language> # no value = no explicit default
13 # @favor=[normal|script] # no value = no explicit setting
14 # @threshold=<number 0..100> # no value = no explicit setting
16 # A line with ">>" is a getBestMatch() test case:
17 # <comma-separated desired languages> >> match | desired | combined
18 # - match is the expected best supported language
19 # - desired is the expected best desired language
20 # - combined is the expected result of combine(match, desired)
21 # An expected language can be "null" to check for the matcher returning null.
22 # An empty or omitted value is not tested. (Omitted = not even the '|' separator.)
24 # ** test: A new test group resets all matcher parameters.
28 ** test: testParentLocales
30 # es-419, es-AR, and es-MX are in a cluster; es is in a different one
32 @supported=es-419, es-ES
34 @supported=es-ES, es-419
47 # en-GB, en-AU, and en-NZ are in a cluster; en in a different one
49 @supported=en-GB, en-US
51 @supported=en-US, en-GB
59 @supported=en-NZ, en-US
61 @supported=en-US, en-NZ
69 # pt-AU and pt-PT in one cluster; pt-BR in another
71 @supported=pt-PT, pt-BR
73 @supported=pt-BR, pt-PT
81 @supported=zh-MO, zh-TW
83 @supported=zh-TW, zh-MO
86 @supported=zh-MO, zh-CN
88 @supported=zh-CN, zh-MO
97 @supported=es-419, es-ES
99 @supported=es-ES, es-419
101 @supported=es-419, es
103 @supported=es, es-419
109 @supported=en-GB, en-US
111 @supported=en-US, en-GB
117 @supported=en-NZ, en-US
119 @supported=en-US, en-NZ
125 @supported=pt-PT, pt-BR
127 @supported=pt-BR, pt-PT
133 @supported=zh-MO, zh-TW
135 @supported=zh-TW, zh-MO
137 @supported=zh-MO, zh-CN
139 @supported=zh-CN, zh-MO
148 @supported=zh-CN, zh-TW, iw
166 @supported=fr, en, en-GB, es-419, es-MX, es
178 ** test: testFallbacks
180 @supported=91, en, hi
188 @supported=fr, en-GB, en
192 ja >> fr # return first if no match
200 ** test: testFallback
202 # check that script fallbacks are handled right
204 @supported=zh-CN, zh-TW, iw
218 ** test: testSpecials
220 # check that nearby languages are handled
222 @supported=en, fil, ro, nn
227 # make sure default works
237 ** test: testRegionalSpecials
239 # verify that en-AU is closer to en-GB than to en (which is en-US)
241 @supported=en, en-GB, es, es-419
253 # HK and MO are closer to each other for Hant than to TW
255 @supported=zh, zh-TW, zh-MO
257 @supported=zh, zh-TW, zh-HK
261 @supported=zh, zh-TW, zh-MO
263 @supported=zh, zh-TW, zh-HK
266 ** test: testMatch-matchOnMazimized
268 @supported=zh, zh-Hant
269 und-TW >> zh-Hant # und-TW should be closer to zh-Hant than to zh
271 @supported=en-Hant-TW, und-TW
272 zh-Hant >> und-TW # zh-Hant should be closer to und-TW than to en-Hant-TW
273 zh >> und-TW # zh should be closer to und-TW than to en-Hant-TW
276 @supported=zh, zh-Hant
278 @supported=en-Hant-TW, und-TW
282 ** test: testMatchGrandfatheredCode
284 @supported=fr, i-klingon, en-Latn-US
285 en-GB-oed >> en-Latn-US
288 en-GB-oed >> en-Latn-US
290 ** test: testGetBestMatchForList-exactMatch
291 @supported=fr, en-GB, ja, es-ES, es-MX
297 ** test: testGetBestMatchForList-simpleVariantMatch
298 @supported=fr, en-GB, ja, es-ES, es-MX
299 de, en-US >> en-GB # Intentionally avoiding a perfect-match or two candidates for variant matches.
309 ** test: testGetBestMatchForList-matchOnMaximized
310 # Check that if the preference is maximized already, it works as well.
313 ja-Jpan-JP, en-AU >> ja # Match for ja-Jpan-JP (maximized already)
315 # ja-JP matches ja on likely subtags, and it's listed first, thus it wins over the second preference en-GB.
317 ja-JP, en-US >> ja # Match for ja-Jpan-JP (maximized already)
319 # Check that if the preference is maximized already, it works as well.
321 ja-Jpan-JP, en-US >> ja # Match for ja-Jpan-JP (maximized already)
324 ja-Jpan-JP, en-AU >> ja
326 ja-Jpan-JP, en-US >> ja
328 ** test: testGetBestMatchForList-noMatchOnMaximized
329 # Regression test for http://b/5714572 .
330 # de maximizes to de-DE. Pick the exact match for the secondary language instead.
331 @supported=en, de, fr, ja
337 ** test: testBestMatchForTraditionalChinese
339 # Scenario: An application that only supports Simplified Chinese (and some other languages),
340 # but does not support Traditional Chinese. zh-Hans-CN could be replaced with zh-CN, zh, or
341 # zh-Hans, it wouldn't make much of a difference.
343 # The script distance (simplified vs. traditional Han) is considered small enough
344 # to be an acceptable match. The regional difference is considered almost insignificant.
346 @supported=fr, zh-Hans-CN, en-US
348 zh-Hant >> zh-Hans-CN
350 # For geopolitical reasons, you might want to avoid a zh-Hant -> zh-Hans match.
351 # In this case, if zh-TW, zh-HK or a tag starting with zh-Hant is requested, you can
352 # change your call to getBestMatch to include a 2nd language preference.
353 # "en" is a better match since its distance to "en-US" is closer than the distance
354 # from "zh-TW" to "zh-CN" (script distance).
357 zh-Hant-CN, en >> en-US
358 zh-Hans, en >> zh-Hans-CN
362 zh-Hant >> zh-Hans-CN
364 zh-Hant-CN, en >> en-US
365 zh-Hans, en >> zh-Hans-CN
367 ** test: testUndefined
368 # When the undefined language doesn't match anything in the list,
369 # getBestMatch returns the default, as usual.
374 # When it *does* occur in the list, bestMatch returns it, as expected.
378 # The unusual part: max("und") = "en-Latn-US", and since matching is based on maximized
379 # tags, the undefined language would normally match English. But that would produce the
380 # counterintuitive results that getBestMatch("und", XLocaleMatcher("it,en")) would be "en", and
381 # getBestMatch("en", XLocaleMatcher("it,und")) would be "und".
383 # To avoid that, we change the matcher's definitions of max
384 # so that max("und")="und". That produces the following, more desirable
388 # und >> it # Apple, get en
390 # en >> it # Apple, get und
398 # und >> it # Apple, get en
400 # en >> it # Apple, get und
402 ** test: testGetBestMatch-regionDistance
406 @supported=fr, en, en-GB
408 @supported=de-AT, de-DE, de-CH
414 @supported=fr, en, en-GB
416 @supported=de-AT, de-DE, de-CH
419 ** test: testAsymmetry
424 nl >> mul # but nl !=> af
432 ** test: testGetBestMatchForList-matchOnMaximized2
434 # ja-JP matches ja on likely subtags, and it's listed first, thus it wins over the second preference en-GB.
436 @supported=fr, en-GB, ja, es-ES, es-MX
437 ja-JP, en-GB >> ja # Match for ja-JP, with likely region subtag
439 # Check that if the preference is maximized already, it works as well.
441 ja-Jpan-JP, en-GB >> ja # Match for ja-Jpan-JP (maximized already)
445 ja-Jpan-JP, en-GB >> ja
447 ** test: testGetBestMatchForList-closeEnoughMatchOnMaximized
449 @supported=en-GB, en, de, fr, ja
451 en-US, ar, nl, de, ja >> en
455 en-US, ar, nl, de, ja >> en
457 ** test: testGetBestMatchForPortuguese
459 # pt might be supported and not pt-PT
461 # European user who prefers Spanish over Brazilian Portuguese as a fallback.
463 @supported=pt-PT, pt-BR, es, es-419
464 pt-PT, es, pt >> pt-PT
465 @supported=pt-PT, pt, es, es-419
466 pt-PT, es, pt >> pt-PT # pt implicit
468 # Brazilian user who prefers South American Spanish over European Portuguese as a fallback.
469 # The asymmetry between this case and above is because it's "pt-PT" that's missing between the
470 # matchers as "pt-BR" is a much more common language.
472 @supported=pt-PT, pt-BR, es, es-419
473 pt, es-419, pt-PT >> pt-BR
474 pt-PT, es, pt >> pt-PT
475 @supported=pt-PT, pt, es, es-419
476 pt-PT, es, pt >> pt-PT
477 pt, es-419, pt-PT >> pt
479 @supported=pt-BR, es, es-419
480 pt, es-419, pt-PT >> pt-BR
482 # Code that adds the user's country can get "pt-US" for a user's language.
483 # That should fall back to "pt-BR".
485 @supported=pt-PT, pt-BR, es, es-419
486 pt-US, pt-PT >> pt-BR
487 @supported=pt-PT, pt, es, es-419
488 pt-US, pt-PT, pt >> pt # pt-BR implicit
491 @supported=pt-PT, pt-BR, es, es-419
492 pt-PT, es, pt >> pt-PT
493 @supported=pt-PT, pt, es, es-419
494 pt-PT, es, pt >> pt-PT
496 @supported=pt-PT, pt-BR, es, es-419
497 pt, es-419, pt-PT >> pt-BR
498 pt-PT, es, pt >> pt-PT
499 @supported=pt-PT, pt, es, es-419
500 pt-PT, es, pt >> pt-PT
501 pt, es-419, pt-PT >> pt
503 @supported=pt-BR, es, es-419
504 pt, es-419, pt-PT >> pt-BR
506 @supported=pt-PT, pt-BR, es, es-419
507 pt-US, pt-PT >> pt-BR
508 @supported=pt-PT, pt, es, es-419
509 pt-US, pt-PT, pt >> pt
511 ** test: testVariantWithScriptMatch 1 and 2
513 @supported=fr, en, sv
519 @supported=fr, en, sv
524 ** test: testLongLists
529 @supported=af, am, ar, az, be, bg, bn, bs, ca, cs, cy, da, de, el, en, en-GB, es, es-419, et, eu, fa, fi, fil, fr, ga, gl, gu, hi, hr, hu, hy, id, is, it, iw, ja, ka, kk, km, kn, ko, ky, lo, lt, lv, mk, ml, mn, mr, ms, my, ne, nl, no, pa, pl, pt, pt-PT, ro, ru, si, sk, sl, sq, sr, sr-Latn, sv, sw, ta, te, th, tr, uk, ur, uz, vi, zh-CN, zh-TW, zu
532 @supported=af, af-NA, af-ZA, agq, agq-CM, ak, ak-GH, am, am-ET, ar, ar-001, ar-AE, ar-BH, ar-DJ, ar-DZ, ar-EG, ar-EH, ar-ER, ar-IL, ar-IQ, ar-JO, ar-KM, ar-KW, ar-LB, ar-LY, ar-MA, ar-MR, ar-OM, ar-PS, ar-QA, ar-SA, ar-SD, ar-SO, ar-SS, ar-SY, ar-TD, ar-TN, ar-YE, as, as-IN, asa, asa-TZ, ast, ast-ES, az, az-Cyrl, az-Cyrl-AZ, az-Latn, az-Latn-AZ, bas, bas-CM, be, be-BY, bem, bem-ZM, bez, bez-TZ, bg, bg-BG, bm, bm-ML, bn, bn-BD, bn-IN, bo, bo-CN, bo-IN, br, br-FR, brx, brx-IN, bs, bs-Cyrl, bs-Cyrl-BA, bs-Latn, bs-Latn-BA, ca, ca-AD, ca-ES, ca-ES-VALENCIA, ca-FR, ca-IT, ce, ce-RU, cgg, cgg-UG, chr, chr-US, ckb, ckb-IQ, ckb-IR, cs, cs-CZ, cu, cu-RU, cy, cy-GB, da, da-DK, da-GL, dav, dav-KE, de, de-AT, de-BE, de-CH, de-DE, de-LI, de-LU, dje, dje-NE, dsb, dsb-DE, dua, dua-CM, dyo, dyo-SN, dz, dz-BT, ebu, ebu-KE, ee, ee-GH, ee-TG, el, el-CY, el-GR, en, en-001, en-150, en-AG, en-AI, en-AS, en-AT, en-AU, en-BB, en-BE, en-BI, en-BM, en-BS, en-BW, en-BZ, en-CA, en-CC, en-CH, en-CK, en-CM, en-CX, en-CY, en-DE, en-DG, en-DK, en-DM, en-ER, en-FI, en-FJ, en-FK, en-FM, en-GB, en-GD, en-GG, en-GH, en-GI, en-GM, en-GU, en-GY, en-HK, en-IE, en-IL, en-IM, en-IN, en-IO, en-JE, en-JM, en-KE, en-KI, en-KN, en-KY, en-LC, en-LR, en-LS, en-MG, en-MH, en-MO, en-MP, en-MS, en-MT, en-MU, en-MW, en-MY, en-NA, en-NF, en-NG, en-NL, en-NR, en-NU, en-NZ, en-PG, en-PH, en-PK, en-PN, en-PR, en-PW, en-RW, en-SB, en-SC, en-SD, en-SE, en-SG, en-SH, en-SI, en-SL, en-SS, en-SX, en-SZ, en-TC, en-TK, en-TO, en-TT, en-TV, en-TZ, en-UG, en-UM, en-US, en-US-POSIX, en-VC, en-VG, en-VI, en-VU, en-WS, en-ZA, en-ZM, en-ZW, eo, eo-001, es, es-419, es-AR, es-BO, es-CL, es-CO, es-CR, es-CU, es-DO, es-EA, es-EC, es-ES, es-GQ, es-GT, es-HN, es-IC, es-MX, es-NI, es-PA, es-PE, es-PH, es-PR, es-PY, es-SV, es-US, es-UY, es-VE, et, et-EE, eu, eu-ES, ewo, ewo-CM, fa, fa-AF, fa-IR, ff, ff-CM, ff-GN, ff-MR, ff-SN, fi, fi-FI, fil, fil-PH, fo, fo-DK, fo-FO, fr, fr-BE, fr-BF, fr-BI, fr-BJ, fr-BL, fr-CA, fr-CD, fr-CF, fr-CG, fr-CH, fr-CI, fr-CM, fr-DJ, fr-DZ, fr-FR, fr-GA, fr-GF, fr-GN, fr-GP, fr-GQ, fr-HT, fr-KM, fr-LU, fr-MA, fr-MC, fr-MF, fr-MG, fr-ML, fr-MQ, fr-MR, fr-MU, fr-NC, fr-NE, fr-PF, fr-PM, fr-RE, fr-RW, fr-SC, fr-SN, fr-SY, fr-TD, fr-TG, fr-TN, fr-VU, fr-WF, fr-YT, fur, fur-IT, fy, fy-NL, ga, ga-IE, gd, gd-GB, gl, gl-ES, gsw, gsw-CH, gsw-FR, gsw-LI, gu, gu-IN, guz, guz-KE, gv, gv-IM, ha, ha-GH, ha-NE, ha-NG, haw, haw-US, he, he-IL, hi, hi-IN, hr, hr-BA, hr-HR, hsb, hsb-DE, hu, hu-HU, hy, hy-AM, id, id-ID, ig, ig-NG, ii, ii-CN, is, is-IS, it, it-CH, it-IT, it-SM, ja, ja-JP, jgo, jgo-CM, jmc, jmc-TZ, ka, ka-GE, kab, kab-DZ, kam, kam-KE, kde, kde-TZ, kea, kea-CV, khq, khq-ML, ki, ki-KE, kk, kk-KZ, kkj, kkj-CM, kl, kl-GL, kln, kln-KE, km, km-KH, kn, kn-IN, ko, ko-KP, ko-KR, kok, kok-IN, ks, ks-IN, ksb, ksb-TZ, ksf, ksf-CM, ksh, ksh-DE, kw, kw-GB, ky, ky-KG, lag, lag-TZ, lb, lb-LU, lg, lg-UG, lkt, lkt-US, ln, ln-AO, ln-CD, ln-CF, ln-CG, lo, lo-LA, lrc, lrc-IQ, lrc-IR, lt, lt-LT, lu, lu-CD, luo, luo-KE, luy, luy-KE, lv, lv-LV, mas, mas-KE, mas-TZ, mer, mer-KE, mfe, mfe-MU, mg, mg-MG, mgh, mgh-MZ, mgo, mgo-CM, mk, mk-MK, ml, ml-IN, mn, mn-MN, mr, mr-IN, ms, ms-BN, ms-MY, ms-SG, mt, mt-MT, mua, mua-CM, my, my-MM, mzn, mzn-IR, naq, naq-NA, nb, nb-NO, nb-SJ, nd, nd-ZW, ne, ne-IN, ne-NP, nl, nl-AW, nl-BE, nl-BQ, nl-CW, nl-NL, nl-SR, nl-SX, nmg, nmg-CM, nn, nn-NO, nnh, nnh-CM, nus, nus-SS, nyn, nyn-UG, om, om-ET, om-KE, or, or-IN, os, os-GE, os-RU, pa, pa-Arab, pa-Arab-PK, pa-Guru, pa-Guru-IN, pl, pl-PL, prg, prg-001, ps, ps-AF, pt, pt-AO, pt-BR, pt-CV, pt-GW, pt-MO, pt-MZ, pt-PT, pt-ST, pt-TL, qu, qu-BO, qu-EC, qu-PE, rm, rm-CH, rn, rn-BI, ro, ro-MD, ro-RO, rof, rof-TZ, root, ru, ru-BY, ru-KG, ru-KZ, ru-MD, ru-RU, ru-UA, rw, rw-RW, rwk, rwk-TZ, sah, sah-RU, saq, saq-KE, sbp, sbp-TZ, se, se-FI, se-NO, se-SE, seh, seh-MZ, ses, ses-ML, sg, sg-CF, shi, shi-Latn, shi-Latn-MA, shi-Tfng, shi-Tfng-MA, si, si-LK, sk, sk-SK, sl, sl-SI, smn, smn-FI, sn, sn-ZW, so, so-DJ, so-ET, so-KE, so-SO, sq, sq-AL, sq-MK, sq-XK, sr, sr-Cyrl, sr-Cyrl-BA, sr-Cyrl-ME, sr-Cyrl-RS, sr-Cyrl-XK, sr-Latn, sr-Latn-BA, sr-Latn-ME, sr-Latn-RS, sr-Latn-XK, sv, sv-AX, sv-FI, sv-SE, sw, sw-CD, sw-KE, sw-TZ, sw-UG, ta, ta-IN, ta-LK, ta-MY, ta-SG, te, te-IN, teo, teo-KE, teo-UG, th, th-TH, ti, ti-ER, ti-ET, tk, tk-TM, to, to-TO, tr, tr-CY, tr-TR, twq, twq-NE, tzm, tzm-MA, ug, ug-CN, uk, uk-UA, ur, ur-IN, ur-PK, uz, uz-Arab, uz-Arab-AF, uz-Cyrl, uz-Cyrl-UZ, uz-Latn, uz-Latn-UZ, vai, vai-Latn, vai-Latn-LR, vai-Vaii, vai-Vaii-LR, vi, vi-VN, vo, vo-001, vun, vun-TZ, wae, wae-CH, xog, xog-UG, yav, yav-CM, yi, yi-001, yo, yo-BJ, yo-NG, zgh, zgh-MA, zh, zh-Hans, zh-Hans-CN, zh-Hans-HK, zh-Hans-MO, zh-Hans-SG, zh-Hant, zh-Hant-HK, zh-Hant-MO, zh-Hant-TW, zu, zu-ZA
539 @supported=af, am, ar, az, be, bg, bn, bs, ca, cs, cy, da, de, el, en, en-GB, es, es-419, et, eu, fa, fi, fil, fr, ga, gl, gu, hi, hr, hu, hy, id, is, it, iw, ja, ka, kk, km, kn, ko, ky, lo, lt, lv, mk, ml, mn, mr, ms, my, ne, nl, no, pa, pl, pt, pt-PT, ro, ru, si, sk, sl, sq, sr, sr-Latn, sv, sw, ta, te, th, tr, uk, ur, uz, vi, zh-CN, zh-TW, zu
542 @supported=af, af-NA, af-ZA, agq, agq-CM, ak, ak-GH, am, am-ET, ar, ar-001, ar-AE, ar-BH, ar-DJ, ar-DZ, ar-EG, ar-EH, ar-ER, ar-IL, ar-IQ, ar-JO, ar-KM, ar-KW, ar-LB, ar-LY, ar-MA, ar-MR, ar-OM, ar-PS, ar-QA, ar-SA, ar-SD, ar-SO, ar-SS, ar-SY, ar-TD, ar-TN, ar-YE, as, as-IN, asa, asa-TZ, ast, ast-ES, az, az-Cyrl, az-Cyrl-AZ, az-Latn, az-Latn-AZ, bas, bas-CM, be, be-BY, bem, bem-ZM, bez, bez-TZ, bg, bg-BG, bm, bm-ML, bn, bn-BD, bn-IN, bo, bo-CN, bo-IN, br, br-FR, brx, brx-IN, bs, bs-Cyrl, bs-Cyrl-BA, bs-Latn, bs-Latn-BA, ca, ca-AD, ca-ES, ca-ES-VALENCIA, ca-FR, ca-IT, ce, ce-RU, cgg, cgg-UG, chr, chr-US, ckb, ckb-IQ, ckb-IR, cs, cs-CZ, cu, cu-RU, cy, cy-GB, da, da-DK, da-GL, dav, dav-KE, de, de-AT, de-BE, de-CH, de-DE, de-LI, de-LU, dje, dje-NE, dsb, dsb-DE, dua, dua-CM, dyo, dyo-SN, dz, dz-BT, ebu, ebu-KE, ee, ee-GH, ee-TG, el, el-CY, el-GR, en, en-001, en-150, en-AG, en-AI, en-AS, en-AT, en-AU, en-BB, en-BE, en-BI, en-BM, en-BS, en-BW, en-BZ, en-CA, en-CC, en-CH, en-CK, en-CM, en-CX, en-CY, en-DE, en-DG, en-DK, en-DM, en-ER, en-FI, en-FJ, en-FK, en-FM, en-GB, en-GD, en-GG, en-GH, en-GI, en-GM, en-GU, en-GY, en-HK, en-IE, en-IL, en-IM, en-IN, en-IO, en-JE, en-JM, en-KE, en-KI, en-KN, en-KY, en-LC, en-LR, en-LS, en-MG, en-MH, en-MO, en-MP, en-MS, en-MT, en-MU, en-MW, en-MY, en-NA, en-NF, en-NG, en-NL, en-NR, en-NU, en-NZ, en-PG, en-PH, en-PK, en-PN, en-PR, en-PW, en-RW, en-SB, en-SC, en-SD, en-SE, en-SG, en-SH, en-SI, en-SL, en-SS, en-SX, en-SZ, en-TC, en-TK, en-TO, en-TT, en-TV, en-TZ, en-UG, en-UM, en-US, en-US-POSIX, en-VC, en-VG, en-VI, en-VU, en-WS, en-ZA, en-ZM, en-ZW, eo, eo-001, es, es-419, es-AR, es-BO, es-CL, es-CO, es-CR, es-CU, es-DO, es-EA, es-EC, es-ES, es-GQ, es-GT, es-HN, es-IC, es-MX, es-NI, es-PA, es-PE, es-PH, es-PR, es-PY, es-SV, es-US, es-UY, es-VE, et, et-EE, eu, eu-ES, ewo, ewo-CM, fa, fa-AF, fa-IR, ff, ff-CM, ff-GN, ff-MR, ff-SN, fi, fi-FI, fil, fil-PH, fo, fo-DK, fo-FO, fr, fr-BE, fr-BF, fr-BI, fr-BJ, fr-BL, fr-CA, fr-CD, fr-CF, fr-CG, fr-CH, fr-CI, fr-CM, fr-DJ, fr-DZ, fr-FR, fr-GA, fr-GF, fr-GN, fr-GP, fr-GQ, fr-HT, fr-KM, fr-LU, fr-MA, fr-MC, fr-MF, fr-MG, fr-ML, fr-MQ, fr-MR, fr-MU, fr-NC, fr-NE, fr-PF, fr-PM, fr-RE, fr-RW, fr-SC, fr-SN, fr-SY, fr-TD, fr-TG, fr-TN, fr-VU, fr-WF, fr-YT, fur, fur-IT, fy, fy-NL, ga, ga-IE, gd, gd-GB, gl, gl-ES, gsw, gsw-CH, gsw-FR, gsw-LI, gu, gu-IN, guz, guz-KE, gv, gv-IM, ha, ha-GH, ha-NE, ha-NG, haw, haw-US, he, he-IL, hi, hi-IN, hr, hr-BA, hr-HR, hsb, hsb-DE, hu, hu-HU, hy, hy-AM, id, id-ID, ig, ig-NG, ii, ii-CN, is, is-IS, it, it-CH, it-IT, it-SM, ja, ja-JP, jgo, jgo-CM, jmc, jmc-TZ, ka, ka-GE, kab, kab-DZ, kam, kam-KE, kde, kde-TZ, kea, kea-CV, khq, khq-ML, ki, ki-KE, kk, kk-KZ, kkj, kkj-CM, kl, kl-GL, kln, kln-KE, km, km-KH, kn, kn-IN, ko, ko-KP, ko-KR, kok, kok-IN, ks, ks-IN, ksb, ksb-TZ, ksf, ksf-CM, ksh, ksh-DE, kw, kw-GB, ky, ky-KG, lag, lag-TZ, lb, lb-LU, lg, lg-UG, lkt, lkt-US, ln, ln-AO, ln-CD, ln-CF, ln-CG, lo, lo-LA, lrc, lrc-IQ, lrc-IR, lt, lt-LT, lu, lu-CD, luo, luo-KE, luy, luy-KE, lv, lv-LV, mas, mas-KE, mas-TZ, mer, mer-KE, mfe, mfe-MU, mg, mg-MG, mgh, mgh-MZ, mgo, mgo-CM, mk, mk-MK, ml, ml-IN, mn, mn-MN, mr, mr-IN, ms, ms-BN, ms-MY, ms-SG, mt, mt-MT, mua, mua-CM, my, my-MM, mzn, mzn-IR, naq, naq-NA, nb, nb-NO, nb-SJ, nd, nd-ZW, ne, ne-IN, ne-NP, nl, nl-AW, nl-BE, nl-BQ, nl-CW, nl-NL, nl-SR, nl-SX, nmg, nmg-CM, nn, nn-NO, nnh, nnh-CM, nus, nus-SS, nyn, nyn-UG, om, om-ET, om-KE, or, or-IN, os, os-GE, os-RU, pa, pa-Arab, pa-Arab-PK, pa-Guru, pa-Guru-IN, pl, pl-PL, prg, prg-001, ps, ps-AF, pt, pt-AO, pt-BR, pt-CV, pt-GW, pt-MO, pt-MZ, pt-PT, pt-ST, pt-TL, qu, qu-BO, qu-EC, qu-PE, rm, rm-CH, rn, rn-BI, ro, ro-MD, ro-RO, rof, rof-TZ, root, ru, ru-BY, ru-KG, ru-KZ, ru-MD, ru-RU, ru-UA, rw, rw-RW, rwk, rwk-TZ, sah, sah-RU, saq, saq-KE, sbp, sbp-TZ, se, se-FI, se-NO, se-SE, seh, seh-MZ, ses, ses-ML, sg, sg-CF, shi, shi-Latn, shi-Latn-MA, shi-Tfng, shi-Tfng-MA, si, si-LK, sk, sk-SK, sl, sl-SI, smn, smn-FI, sn, sn-ZW, so, so-DJ, so-ET, so-KE, so-SO, sq, sq-AL, sq-MK, sq-XK, sr, sr-Cyrl, sr-Cyrl-BA, sr-Cyrl-ME, sr-Cyrl-RS, sr-Cyrl-XK, sr-Latn, sr-Latn-BA, sr-Latn-ME, sr-Latn-RS, sr-Latn-XK, sv, sv-AX, sv-FI, sv-SE, sw, sw-CD, sw-KE, sw-TZ, sw-UG, ta, ta-IN, ta-LK, ta-MY, ta-SG, te, te-IN, teo, teo-KE, teo-UG, th, th-TH, ti, ti-ER, ti-ET, tk, tk-TM, to, to-TO, tr, tr-CY, tr-TR, twq, twq-NE, tzm, tzm-MA, ug, ug-CN, uk, uk-UA, ur, ur-IN, ur-PK, uz, uz-Arab, uz-Arab-AF, uz-Cyrl, uz-Cyrl-UZ, uz-Latn, uz-Latn-UZ, vai, vai-Latn, vai-Latn-LR, vai-Vaii, vai-Vaii-LR, vi, vi-VN, vo, vo-001, vun, vun-TZ, wae, wae-CH, xog, xog-UG, yav, yav-CM, yi, yi-001, yo, yo-BJ, yo-NG, zgh, zgh-MA, zh, zh-Hans, zh-Hans-CN, zh-Hans-HK, zh-Hans-MO, zh-Hans-SG, zh-Hant, zh-Hant-HK, zh-Hant-MO, zh-Hant-TW, zu, zu-ZA
548 # und >> it # Apple, get en
552 # http://unicode.org/repos/cldr/tags/latest/common/bcp47/
553 # http://unicode.org/repos/cldr/tags/latest/common/validity/variant.xml
556 # und >> it # Apple, get en
561 @supported=en-NZ, en-IT
567 ** test: testEmptySupported => null
570 # testVariantsAndExtensions
572 ** test: tests the .combine() method
575 fr-BE-fonipa >> fr | | fr-BE-fonipa
576 @supported=und, fr-CA
577 fr-BE-fonipa >> fr-CA | | fr-BE-fonipa
578 @supported=und, fr-fonupa
579 fr-BE-fonipa >> fr-fonupa | | fr-BE-fonipa
581 nn-BE-fonipa >> no | | no-BE-fonipa
582 @supported=und, en-GB-u-sd-gbsct
583 # en-fonipa-u-nu-Arab-ca-buddhist-t-m0-iso-i0-pinyin >> en-GB-u-sd-gbsct | | en-GB-fonipa-u-nu-Arab-ca-buddhist-t-m0-iso-i0-pinyin # Apple, get und
585 @supported=en-PSCRACK, de-PSCRACK, fr-PSCRACK, pt-PT-PSCRACK
586 fr-PSCRACK >> fr-PSCRACK
593 @supported=und, fr-CA
594 fr-BE-fonipa >> fr-CA
595 @supported=und, fr-fonupa
596 fr-BE-fonipa >> fr-fonupa
598 nn-BE-fonipa >> no | | no-BE-fonipa
599 @supported=und, en-GB-u-sd-gbsct
600 # en-fonipa-u-nu-Arab-ca-buddhist-t-m0-iso-i0-pinyin >> en-GB-u-sd-gbsct | | en-GB-fonipa-u-nu-Arab-ca-buddhist-t-m0-iso-i0-pinyin # Apple, get und
602 @supported=en-PSCRACK, de-PSCRACK, fr-PSCRACK, pt-PT-PSCRACK
603 fr-PSCRACK >> fr-PSCRACK
607 ** test: testClusters
608 # we favor es-419 over others in cluster. Clusters: es- {ES, MA, EA} {419, AR, MX}
610 @supported=und, es, es-MA, es-MX, es-419
612 @supported=und, es-MA, es, es-419, es-MX
614 @supported=und, es, es-MA, es-MX, es-419
616 @supported=und, es-MA, es, es-419, es-MX
619 # of course, fall back to within cluster
621 @supported=und, es, es-MA, es-MX
623 @supported=und, es-MA, es, es-MX
625 @supported=und, es-MA, es-MX, es-419
627 @supported=und, es-MA, es-419, es-MX
630 # we favor es-GB over others in cluster. Clusters: en- {US, GU, VI} {GB, IN, ZA}
632 @supported=und, en, en-GU, en-IN, en-GB
634 @supported=und, en-GU, en, en-GB, en-IN
636 @supported=und, en, en-GU, en-IN, en-GB
637 # en-VI >> en # Apple, get und
638 @supported=und, en-GU, en, en-GB, en-IN
639 # en-VI >> en # Apple, get und
641 # of course, fall back to within cluster
643 @supported=und, en, en-GU, en-IN
645 @supported=und, en-GU, en, en-IN
647 @supported=und, en-GU, en-IN, en-GB
648 # en-VI >> en-GU # Apple, get und
649 @supported=und, en-GU, en-GB, en-IN
650 # en-VI >> en-GU # Apple, get und
653 @supported=und, es, es-MA, es-MX, es-419
655 @supported=und, es-MA, es, es-419, es-MX
657 @supported=und, es, es-MA, es-MX, es-419
659 @supported=und, es-MA, es, es-419, es-MX
662 @supported=und, es, es-MA, es-MX
664 @supported=und, es-MA, es, es-MX
666 @supported=und, es-MA, es-MX, es-419
668 @supported=und, es-MA, es-419, es-MX
671 @supported=und, en, en-GU, en-IN, en-GB
673 @supported=und, en-GU, en, en-GB, en-IN
675 @supported=und, en, en-GU, en-IN, en-GB
676 # en-VI >> en # Apple, get und
677 @supported=und, en-GU, en, en-GB, en-IN
678 # en-VI >> en # Apple, get und
680 @supported=und, en, en-GU, en-IN
682 @supported=und, en-GU, en, en-IN
684 @supported=und, en-GU, en-IN, en-GB
685 # en-VI >> en-GU # Apple, get und
686 @supported=und, en-GU, en-GB, en-IN
687 # en-VI >> en-GU # Apple, get und
689 ** test: testThreshold
690 @supported=50, und, fr-CA-fonupa
692 fr-BE-fonipa >> fr-CA-fonupa | | fr-BE-fonipa
693 @supported=und, fr-Cyrl-CA-fonupa
694 fr-BE-fonipa >> fr-Cyrl-CA-fonupa | | fr-Cyrl-BE-fonipa
699 @supported=50, und, fr-CA-fonupa
701 fr-BE-fonipa >> fr-CA-fonupa | | fr-BE-fonipa
702 @supported=und, fr-Cyrl-CA-fonupa
705 ** test: testScriptFirst
709 @supported=hr, en-Cyrl
711 @supported=da, ru, hr
718 @supported=hr, en-Cyrl
720 @supported=da, ru, hr
725 ** test: testBasicsWithDefault
739 ** test: testEmptyWithDefault
743 ** test: testGetBestMatchForList_exactMatch
744 @supported=fr, en-GB, ja, es-ES, es-MX
747 ** test: testGetBestMatchForList_simpleVariantMatch
748 # Intentionally avoiding a perfect-match or two candidates for variant matches.
749 @supported=fr, en-GB, ja, es-ES, es-MX
755 @supported=en-NZ, en-IT
759 @supported=fr, en-GB, en
764 # For a language that doesn't match anything, return the default.
776 ** test: TestExactMatch
777 @supported=fr, en-GB, ja, es-ES, es-MX
780 ** test: TestSimpleVariantMatch
781 @supported=fr, en-GB, ja, es-ES, es-MX
785 ** test: TestMatchOnMaximized
786 # ja-JP matches ja on likely subtags, and it's listed first, thus it wins
787 # over the secondary preference en-GB.
788 @supported=fr, en-GB, ja, es-ES, es-MX
790 # Check that if the preference is maximized already, it works as well.
791 ja-Jpan-JP, en-GB >> ja
792 @supported=fr, zh-Hant, en
798 ** test: TestCloseEnoughMatchOnMaximized
799 @supported=en-GB, en, de, fr, ja
801 en-US, ar, nl, de, ja >> en
803 ** test: TestGetBestMatchForPortuguese
804 # 1. a supported set containing an explicit pt: {pt-PT, pt-BR, es, es-419}
805 # 2. a supported set containing an implicit pt: {pt-PT, pt, es, es-419}
806 # 3. a supported set containing no pt: {pt-BR, es, es-419}
807 # European user who prefers Spanish over Brazilian Portuguese as a fallback.
808 @supported=pt-PT, pt-BR, es, es-419
809 pt-PT, es, pt >> pt-PT
810 @supported=pt-PT, pt, es, es-419
811 pt-PT, es, pt >> pt-PT
812 @supported=pt-BR, es, es-419
813 pt-PT, es, pt >> pt-BR
815 # Brazilian user who prefers South American Spanish over European Portuguese
816 # as a fallback. The asymmetry between this case and above is because it's
817 # "pt-PT" that's missing between the matchers.
818 @supported=pt-PT, pt-BR, es, es-419
819 pt, es-419, pt-PT >> pt-BR
820 @supported=pt-PT, pt, es, es-419
821 pt, es-419, pt-PT >> pt
822 @supported=pt-BR, es, es-419
823 pt, es-419, pt-PT >> pt-BR
825 # Sometimes we get "pt-US" for a user's language (which CLDR doesn't
826 # recognize) but we deal with that as a synonym for "pt-BR".
827 @supported=pt-PT, pt-BR, es, es-419
828 pt-US, pt-PT >> pt-BR
829 @supported=pt-PT, pt, es, es-419
833 @supported=pt-BR, es, es-419
834 pt-PT, es, pt >> pt-BR
835 @supported=pt-PT, pt, es, es-419
838 ** test: TestScriptAndRegion
841 # fr-CA is a "close enough" match to "fr" to be returned in favor of "en-GB"
842 @supported=fr, en-GB, en
844 @supported=zh-Hant, zh-TW
850 @supported=fr, en-GB, en
852 @supported=zh-Hant, zh-TW
855 ** test: TestFallback
856 @supported=zh-CN, zh-TW, iw
863 ** test: TestFallbackWithDefault
864 # Check that script fallbacks are handled right and that we don't have to
865 # fall back to the default.
866 @supported=zh-CN, zh-TW, iw
881 ** test: TestSpecials
882 # Check that nearby languages are handled.
883 @supported=en, fil, ro, nn
887 ja >> en # Make sure default works.
889 ** test: TestRegionalSpecials
890 # Verify that en-AU is closer to en-GB than to en (which is en-US).
891 @supported=en, en-GB, es-ES, es-419
893 # Following 2 cases test closer/smaller region difference.
905 ** test: TestUndefined
906 # When the undefined language doesn't match anything in the list,
907 # return the default.
910 # When it *does* occur in the list, return it.
914 # max("und") = "en-Latn-US", and since matching is based on
915 # maximized tags, the undefined language would normally match
916 # English. But that would produce the counterintuitive results
917 # that BestMatchFor("und", LanguageMatcher("it,en")) would be "en",
918 # and BestMatchFor("en", LanguageMatcher("it,und")) would be "und".
920 # To avoid that, we change the matcher's definitions of max
921 # (AddLikelySubtagsWithDefaults) so that max("und")="und". That
922 # produces the following, more desirable results:
924 # und >> it # Apple, get en
926 # en >> it # Apple, get und
928 ** test: TestVariantWithScriptMatch
929 @supported=fr, en, sv
939 @supported=und, sr-ME
941 @supported=und, sr-Latn
949 @supported=und, sr-Latn
956 @supported=und, sr-ME
958 @supported=und, sr-Latn
959 # bs >> sr-Latn # Apple, get und
961 # sr-Latn >> bs # Apple, get und
966 @supported=und, sr-Latn
971 ** test: MatchGooglePrivateUseSubtag
972 @supported=fr, x-bork, en-Latn-US
975 @supported=fr, en-GB, x-bork, es-ES, es-419
980 @supported=fr, x-bork, en-Latn-US
983 @supported=fr, en-GB, x-bork, es-ES, es-419
987 ** test: MatchGrandfatheredCode
988 @supported=fr, i-klingon, en-Latn-US
989 en-GB-oed >> en-Latn-US
993 en-GB-oed >> en-Latn-US
996 ** test: MatchGooglePseudoLocale
997 # Google pseudo locales using variant subtags.
998 # (See below for the region code based pseudo locales.)
999 @supported=fr, en-PSACCENT, ar-PSBIDI, en-PSCRACK, zh-Hans-PSCRACK, pt-PT-PSCRACK, pt
1003 ar-PSBIDI >> ar-PSBIDI
1004 en-PSACCENT >> en-PSACCENT
1005 en-PSCRACK >> en-PSCRACK
1007 pt-PT-PSCRACK >> pt-PT-PSCRACK
1008 zh-Hans-PSCRACK >> zh-Hans-PSCRACK
1014 ar-PSBIDI >> ar-PSBIDI
1015 en-PSACCENT >> en-PSACCENT
1016 en-PSCRACK >> en-PSCRACK
1018 pt-PT-PSCRACK >> pt-PT-PSCRACK
1019 zh-Hans-PSCRACK >> zh-Hans-PSCRACK
1021 ** test: MatchGooglePseudoLocaleWithFallbacks
1022 # Pseudo locales based on the fall back option (XA..XC region codes).
1023 @supported=fr, en-XA, ar-XB, en-XC, zh-Hans-XC, pt
1031 zh-Hans-XC >> zh-Hans-XC
1041 zh-Hans-XC >> zh-Hans-XC
1043 ** test: DoNotMatchGooglePseudoLocale
1044 @supported=fr, en-XA, ar-XB, en-PSACCENT, ar-PSBIDI, en-DE, pt, ar-SY, ar-PSCRACK
1046 # We wouldn't want to return pseudo locales when there's a good match for an
1048 # Note: If LanguageMatcher was not aware of PSACCENT, it would consider the
1049 # distance from "en" to "en-PSACCENT" smaller than to "en-DE" (the standard
1050 # variant distance is smaller than a region distance).
1055 ar-PSBIDI >> ar-XB # These are equivalent.
1057 en-PSACCENT >> en-XA # These are equivalent.
1058 ar-PSCRACK >> ar-PSCRACK
1066 ar-PSBIDI >> ar-XB # These are equivalent.
1068 en-PSACCENT >> en-XA # These are equivalent.
1069 ar-PSCRACK >> ar-PSCRACK
1071 ** test: BestMatchForTraditionalChinese
1072 # Scenario: An application that only supports Simplified Chinese (and some
1073 # other languages), but does not support Traditional Chinese. zh-Hans-CN
1074 # could be replaced with zh-CN, zh, or zh-Hans, it wouldn't make much of a
1076 # The script distance (simplified vs. traditional Han) is considered small
1077 # enough to be an acceptable match. The regional difference is considered
1078 # almost insignificant.
1079 @supported=fr, zh-Hans-CN, en-US
1081 zh-Hant >> zh-Hans-CN
1083 # For geopolitical reasons, you might want to avoid a zh-Hant -> zh-Hans
1084 # match. In this case, if zh-TW, zh-HK or a tag starting with zh-Hant is
1085 # requested, you can change your call to getBestMatch to include a 2nd
1086 # language preference. "en" is a better match since its distance to "en-US"
1087 # is closer than the distance from "zh-TW" to "zh-CN" (script distance).
1089 zh-Hant-CN, en >> en-US
1090 zh-Hans, en >> zh-Hans-CN
1092 ** test: MaxBeforeEquals
1093 # Compare maximized forms of earlier items before testing equality
1095 @supported=en, fr-CA
1101 ** test: SiblingDefaultRegion
1102 @supported=de-AT, de-DE, de-CH
1105 ** test: ReturnDefaultInsteadOfNullForEmptyPriorityList
1109 ** test: ReturnSpecifiedDefaultForNoMatch
1110 @supported=de, en, fr
1117 ** test: MatchedLanguageIgnoresDefault
1118 @supported=de, en, fr
1127 ** test: TwoSpanishes
1128 @supported=es, es-MX
1173 # und >> und # Apple, get es
1213 ** test: Three Spanishes
1214 @supported=es, es-419, es-MX
1259 # und >> und # Apple, get es
1300 @supported=en-GB, en-US
1306 # Great Britain fallback
1318 # United States fallback
1323 # und >> und # Apple, get en_US
1325 # fr-CA >> en-GB # Apple, get en_US
1339 ** test: TestFallback
1341 @supported=en-GB, en-US, en, en-AU
1343 # und >> und # Apple, get en_US
1351 @supported=en-AU, ja, ca
1355 @supported=pl, ja, ca
1359 @supported=en-GB, en-US, en, en-AU
1360 # und >> und # Apple, get en_US
1362 # fr-CA >> en-GB # Apple, get en_US
1363 # fr >> en-GB # Apple, get en_US
1364 @supported=en-AU, ja, ca
1366 @supported=pl, ja, ca
1372 @supported=fr, en-GB, en
1378 ** test: script fallbacks
1379 @supported=zh-CN, zh-TW, iw
1390 ** test: language-specific script fallbacks 1
1391 @supported=en, sr, nl
1396 nl-Cyrl >> en # Mark: Expected value should be en not sr. Script difference exceeds threshold, so can't be nl
1404 ** test: language-specific script fallbacks 2
1405 @supported=en, sr-Latn
1418 ** test: don't match hr to sr-Latn
1419 @supported=en, sr-Latn
1425 ** test: both deprecated and not
1426 @supported=fil, tl, iw, he
1442 ** test: nearby languages: Nynorsk to Bokmål
1449 ** test: nearby languages: Danish does not match nn
1456 ** test: nearby languages: Danish matches no
1463 ** test: nearby languages: Danish matches nb
1467 ** test: prefer matching languages over language variants.
1468 @supported=nn, en-GB
1476 ** test: deprecated version is closer than same language with other differences
1477 @supported=nl, he, en-GB
1483 ** test: macro equivalent is closer than same language with other differences
1484 @supported=nl, zh, en-GB, no
1492 ** test: legacy equivalent is closer than same language with other differences
1493 @supported=nl, fil, en-GB
1499 ** test: distinguish near equivalents
1500 @supported=en, ro, mo, ro-MD
1502 mo >> ro # ro=mo for the locale matcher
1507 mo >> ro # ro=mo for the locale matcher
1510 ** test: maximization of legacy
1511 @supported=sr-Cyrl, sr-Latn, ro, ro-MD
1523 ** test: private use subtags
1524 @supported=fr, en-GB, x-bork, es-ES, es-419
1528 ** test: grandfathered codes
1529 @supported=fr, i-klingon, en-Latn-US
1530 en-GB-oed >> en-Latn-US
1534 ** test: simple variant match
1535 @supported=fr, en-GB, ja, es-ES, es-MX
1539 ** test: best match for traditional Chinese
1540 @supported=fr, zh-Hans-CN, en-US
1542 zh-Hant >> zh-Hans-CN
1544 zh-Hant-CN, en >> en-US
1545 zh-Hans, en >> zh-Hans-CN
1547 ** test: return first among likely-subtags equivalent locales
1548 # Was: more specific script should win in case regions are identical
1549 # with some different results.
1550 @supported=af, af-Latn, af-Arab
1562 # Was: more specific region should win
1563 # with some different results.
1564 @supported=nl, nl-NL, nl-BE
1577 # Was: more specific region wins over more specific script
1578 # with some different results.
1579 @supported=nl, nl-Latn, nl-NL, nl-BE
1592 ** test: region may replace matched if matched is enclosing
1593 @supported=es-419, es
1605 ** test: region distance Portuguese
1606 @supported=pt, pt-PT
1612 ** test: if no preferred locale specified, pick top language, not regional
1613 @supported=en, fr, fr-CA, fr-CH
1619 ** test: region distance German
1620 @supported=de-AT, de-DE, de-CH
1623 ** test: en-AU is closer to en-GB than to en (which is en-US)
1624 @supported=en, en-GB, es-ES, es-419
1641 ** test: und does not match en
1643 # und >> it # Apple, get en
1645 ** test: undefined in priority list
1648 # en >> it # Apple, get und
1651 @supported=it, fr, zh
1665 ** test: match on maximized tag
1666 @supported=fr, en-GB, ja, es-ES, es-MX
1668 ja-Jpan-JP, en-GB >> ja
1670 ** test: pick best maximized tag
1671 @supported=ja, ja-Jpan-US, ja-JP, en, ru
1674 ja-US, ru >> ja-Jpan-US
1679 ja-US, ru >> ja-Jpan-US
1681 ** test: termination: pick best maximized match
1682 @supported=ja, ja-Jpan, ja-JP, en, ru
1683 ja-Jpan-JP, ru >> ja
1687 ja-Jpan-JP, ru >> ja
1690 ** test: same language over exact, but distinguish when user is explicit
1691 @supported=fr, en-GB, ja, es-ES, es-MX
1693 @supported=en, de, fr, ja
1695 @supported=en-GB, nl
1697 en, nl, en-GB >> en-GB
1700 @supported=fr, en-GB, ja, es-ES, es-MX
1702 @supported=en, de, fr, ja
1704 @supported=en-GB, nl
1706 en, nl, en-GB >> en-GB
1708 ** test: parent relation preserved
1709 @supported=en, en-US, en-GB, es, es-419, pt, pt-BR, pt-PT, zh, zh-Hant, zh-Hant-HK
1843 ** test: preserve extensions
1844 @supported=en, de, sl-NEDIS
1845 @default=de-u-co-phonebk
1846 de-FR-u-co-phonebk >> de
1847 @default=sl-NEDIS-u-cu-eur
1848 sl-NEDIS-u-cu-eur >> sl-NEDIS
1849 sl-u-cu-eur >> sl-NEDIS
1850 sl-HR-NEDIS-u-cu-eur >> sl-NEDIS
1851 @default=de-t-m0-iso-i0-pinyin
1852 de-t-m0-iso-i0-pinyin >> de
1855 @default=de-u-co-phonebk
1856 de-FR-u-co-phonebk >> de
1857 @default=sl-NEDIS-u-cu-eur
1858 sl-NEDIS-u-cu-eur >> sl-NEDIS
1859 sl-u-cu-eur >> sl-NEDIS
1860 sl-HR-NEDIS-u-cu-eur >> sl-NEDIS
1861 @default=de-t-m0-iso-i0-pinyin
1862 de-t-m0-iso-i0-pinyin >> de
1866 ** test: testEmptyUserLanguagesGetsEmpty_getBestMatches
1870 ** test: testNoStrongMatchGetsEmpty_getBestMatches
1877 ** test: testLooseMatchForGeneral_getBestMatches
1884 ** test: testLooseMatchForEnglish_getBestMatches
1885 @supported=en, en-GB
1891 ** test: testLooseMatchForChinese_getBestMatches
1900 ** test: testGetBestMatchWithMinMatchScore
1901 @supported=fr-FR, fr, fr-CA, en
1903 fr >> fr-FR # First likely-subtags equivalent match is chosen.
1904 @supported=en, fr, fr-CA
1905 fr-FR >> fr # Parent match is chosen.
1906 @supported=en, fr-CA
1907 fr-FR >> fr-CA # Sibling match is chosen.
1908 @supported=fr-CA, fr-FR
1909 fr >> fr-FR # Inferred region match is chosen.
1911 @supported=en, fr-FR
1912 fr >> fr-FR # Child match is chosen.
1913 @supported=de, en, it
1919 @supported=iw-Latn, iw-Cyrl, iw
1921 @supported=iw, iw-Latn
1926 @supported=zh-TW, en
1932 @supported=fr-FR, fr, fr-CA, en
1934 @supported=en, fr, fr-CA
1936 @supported=en, fr-CA
1938 @supported=fr-CA, fr-FR
1941 @supported=en, fr-FR
1943 @supported=de, en, it
1949 @supported=iw-Latn, iw-Cyrl, iw
1951 @supported=iw, iw-Latn
1956 @supported=zh-TW, en