ICU-2835 fix for convenience ures_ APIs not following aliases - need more testing

X-SVN-Rev: 11634
This commit is contained in:
Vladimir Weinstein 2003-04-23 06:59:50 +00:00
parent 1b9191b521
commit d84ed8d5fa

View File

@ -1827,6 +1827,11 @@ static void TestResourceLevelAliasing(void) {
log_err("Referencing alias didn't get the right string\n");
}
string = ures_getStringByKey(aliasB, "referencingalias", &strLen, &status);
if(seqLen != strLen || u_strncmp(sequence, string, seqLen) != 0) {
log_err("Referencing alias didn't get the right string\n");
}
tb = ures_getByKey(aliasB, "CollationElements", tb, &status);
tb = ures_getByKey(tb, "Sequence", tb, &status);
string = ures_getString(tb, &strLen, &status);