ICU-9161 Excluded variant Cryl/Latn found in IBM Java 6 from the test case.

X-SVN-Rev: 31616
This commit is contained in:
Yoshito Umaoka 2012-03-14 21:21:31 +00:00
parent 6bde113710
commit f2f2d6d104

View file

@ -230,7 +230,8 @@ public class LocaleNameTest extends TestFmwk {
String[] locVarSubtags = locVar.split("_");
for (String locSingleVar : locVarSubtags) {
if (locSingleVar.equals(TestUtil.ICU_VARIANT)) {
if (locSingleVar.equals(TestUtil.ICU_VARIANT)
|| locSingleVar.equals("Cyrl") || locSingleVar.equals("Latn")) { // IBM Java 6 has locales with 'variant' Cryl/Latn
continue;
}
Locale forLocaleSingleVar = new Locale(forLocale.getLanguage(), forLocale.getCountry(), locSingleVar);