ICU-2438 CollationElements->collations changes in intltest

X-SVN-Rev: 13669
This commit is contained in:
Vladimir Weinstein 2003-11-11 21:39:15 +00:00
parent 77dbe29f91
commit d5dcb0d8a0

View File

@ -498,7 +498,7 @@ ResourceBundleTest::TestGetSize(void)
{ "emptyint", 1},
{ "emptybin", 1},
{ "testinclude", 1},
{ "CollationElements", 3}, /* not 2 - there is hidden %%CollationBin */
{ "collations", 1}, /* not 2 - there is hidden %%CollationBin */
};
UErrorCode status = U_ZERO_ERROR;
@ -585,7 +585,7 @@ ResourceBundleTest::TestGetLocaleByType(void)
}
locale = res.getLocale(ULOC_REQUESTED_LOCALE, status);
if(strcmp(locale.getName(), test[i].requestedLocale) != 0) {
if(locale != Locale::getDefault()) {
err("Expected requested locale to be %s. Got %s\n", test[i].requestedLocale, locale.getName());
}
locale = res.getLocale(ULOC_VALID_LOCALE, status);