mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-13 08:53:20 +00:00
ICU-2947 After de-anglicizing the Arabic locale, it was de-latinized.
Test with a different incomplete locale. X-SVN-Rev: 13672
This commit is contained in:
parent
4624f1f768
commit
38e6180871
1 changed files with 8 additions and 8 deletions
|
@ -990,7 +990,7 @@ LocaleTest::TestAtypicalLocales()
|
|||
CharsToUnicodeString("B\\u00E9lgica") };
|
||||
// De-Anglicizing root required the change from
|
||||
// English display names to ISO Codes - ram 2003/09/26
|
||||
UnicodeString arabicDisplayNames [] = { "de (CA)",
|
||||
UnicodeString bengaliDisplayNames [] = { "de (CA)",
|
||||
"ja (ZA)",
|
||||
"ru (MX)",
|
||||
"en (FR)",
|
||||
|
@ -1035,15 +1035,15 @@ LocaleTest::TestAtypicalLocales()
|
|||
|
||||
for (i = 0; i < 9; i++) {
|
||||
UnicodeString name;
|
||||
localesToTest[i].getDisplayName(Locale("ar", "ES"), name);
|
||||
logln(name + " Locale fallback to ar, and data fallback to root");
|
||||
if (name != arabicDisplayNames[i])
|
||||
errln("Lookup in Arabic failed: expected \"" + arabicDisplayNames[i]
|
||||
localesToTest[i].getDisplayName(Locale("be", "ES"), name);
|
||||
logln(name + " Locale fallback to be, and data fallback to root");
|
||||
if (name != bengaliDisplayNames[i])
|
||||
errln("Lookup in Bengali failed: expected \"" + bengaliDisplayNames[i]
|
||||
+ "\", got \"" + name + "\"");
|
||||
localesToTest[i].getDisplayName(Locale("ar", "EG"), name);
|
||||
localesToTest[i].getDisplayName(Locale("be", "EG"), name);
|
||||
logln(name + " Data fallback to root");
|
||||
if (name != arabicDisplayNames[i])
|
||||
errln("Lookup in Arabic failed: expected \"" + arabicDisplayNames[i]
|
||||
if (name != bengaliDisplayNames[i])
|
||||
errln("Lookup in Bengali failed: expected \"" + bengaliDisplayNames[i]
|
||||
+ "\", got \"" + name + "\"");
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue