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:
parent
be493b8149
commit
f6fffb93ad
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user