mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-20016 Skip testing pseudolocale region codes for display names.
At the moment, CLDR pseudolocale region codes don't have display names. As long as that is so, ICU must not require them to exist in order to not cause bogus test failures when building with pseudolocales.
This commit is contained in:
parent
e878d9d814
commit
1dccd7472e
1 changed files with 7 additions and 1 deletions
|
@ -718,7 +718,13 @@ public final class ICUResourceBundleTest extends TestFmwk {
|
|||
}
|
||||
|
||||
for (int i = 0; i < locales.length; ++i) {
|
||||
if (!hasLocalizedCountryFor(ULocale.ENGLISH, locales[i])){
|
||||
// The region codes used for pseudolocales don't have display names.
|
||||
// That might however change in the future, in which case skipping
|
||||
// testing of these names here would become irrelevant:
|
||||
// https://unicode.org/cldr/trac/ticket/10880
|
||||
String country = locales[i].getCountry();
|
||||
if (!"XA".equals(country) && !"XB".equals(country)
|
||||
&& !hasLocalizedCountryFor(ULocale.ENGLISH, locales[i])){
|
||||
errln("Could not get English localized country for " + locales[i]);
|
||||
}
|
||||
if(!hasLocalizedLanguageFor(ULocale.ENGLISH, locales[i])){
|
||||
|
|
Loading…
Add table
Reference in a new issue