ICU-552 Test for fallback mechanism of aliased data

X-SVN-Rev: 4222
This commit is contained in:
Ram Viswanadha 2001-03-21 01:50:24 +00:00
parent 1daecafbde
commit d8fd66f325

View File

@ -1263,10 +1263,22 @@ static void TestFallback()
log_err("Expected U_USING_FALLBACK_ERROR when trying to get ShortLanguage from fr_FR, got %d\n",
status);
}
status = U_ZERO_ERROR;
ures_close(fr_FR);
/* Test Jitterbug 552 fallback mechanism of aliased data */
{
UErrorCode err =U_ZERO_ERROR;
UResourceBundle* myResB = ures_open(NULL,"no_NO",&err);
const UChar* myLocID = ures_get(myResB,"LocaleID",&err);
UResourceBundle* tResB = ures_getByKey(myResB, "DayNames", NULL, &err);
if(err!= U_USING_FALLBACK_ERROR){
log_err("Expected U_USING_FALLBACK_ERROR when trying to test no_NO aliased with nn_NO %d\n",err);
}
}
}
static void printUChars(UChar* uchars){