ICU-2487 change ures_findResource tests to not use collation as an example.
X-SVN-Rev: 14982
This commit is contained in:
parent
d442797ad9
commit
db880037f8
@ -2243,25 +2243,26 @@ static void TestDirectAccess(void) {
|
||||
}
|
||||
}
|
||||
|
||||
t = ures_findResource("sh/collations/standard/Sequence", t, &status);
|
||||
t = ures_findResource("ja/LocaleScript", t, &status);
|
||||
if(U_FAILURE(status)) {
|
||||
log_err("Couldn't access keyed resource, error %s\n", u_errorName(status));
|
||||
status = U_ZERO_ERROR;
|
||||
} else {
|
||||
key = ures_getKey(t);
|
||||
if(strcmp(key, "Sequence")!=0) {
|
||||
log_err("Got a strange key, expected 'Sequence', got %s\n", key);
|
||||
if(strcmp(key, "LocaleScript")!=0) {
|
||||
log_err("Got a strange key, expected 'LocaleScript', got %s\n", key);
|
||||
}
|
||||
}
|
||||
|
||||
t2 = ures_open(NULL, "sh", &status);
|
||||
t2 = ures_open(NULL, "sr", &status);
|
||||
if(U_FAILURE(status)) {
|
||||
log_err("Couldn't open 'sh' resource bundle, error %s\n", u_errorName(status));
|
||||
log_data_err("No 'sh', no test - you have bigger problems than testing direct access. You probably have no data! Aborting this test\n");
|
||||
log_err("Couldn't open 'sr' resource bundle, error %s\n", u_errorName(status));
|
||||
log_data_err("No 'sr', no test - you have bigger problems than testing direct access. "
|
||||
"You probably have no data! Aborting this test\n");
|
||||
}
|
||||
|
||||
if(U_SUCCESS(status)) {
|
||||
strcpy(buffer, "collations/standard/Sequence");
|
||||
strcpy(buffer, "Languages/hr");
|
||||
s = buffer;
|
||||
t = ures_findSubResource(t2, s, t, &status);
|
||||
if(U_FAILURE(status)) {
|
||||
@ -2269,8 +2270,8 @@ static void TestDirectAccess(void) {
|
||||
status = U_ZERO_ERROR;
|
||||
} else {
|
||||
key = ures_getKey(t);
|
||||
if(strcmp(key, "Sequence")!=0) {
|
||||
log_err("Got a strange key, expected 'Sequence', got %s\n", key);
|
||||
if(strcmp(key, "hr")!=0) {
|
||||
log_err("Got a strange key, expected 'hr', got %s\n", key);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user