ICU-4433 Don't do round-trip test if can't create the Unicode set of mirrored characters!

X-SVN-Rev: 17313
This commit is contained in:
Eric Mader 2005-03-10 02:02:14 +00:00
parent be493b8149
commit f6fffb93ad

View File

@ -1787,6 +1787,10 @@ TestMirroring() {
/* verify that Bidi_Mirroring_Glyph roundtrips */
errorCode=U_ZERO_ERROR;
set=uset_openPattern(mirroredPattern, 17, &errorCode);
if (U_FAILURE(errorCode)) {
log_err("uset_openPattern(mirroredPattern, 17, &errorCode) failed!");
} else {
for(i=0; 0==uset_getItem(set, i, &start, &end, NULL, 0, &errorCode); ++i) {
do {
c2=u_charMirror(start);
@ -1796,6 +1800,7 @@ TestMirroring() {
}
} while(++start<=end);
}
}
uset_close(set);
}