ICU-2550 make it pass too!

X-SVN-Rev: 10550
This commit is contained in:
Alan Liu 2002-12-06 22:51:13 +00:00
parent abde416f01
commit 1c2ded70a5

View File

@ -581,7 +581,7 @@ void RTTest::test2(UBool quickRt, int32_t density) {
return; return;
} }
usi.reset(sourceRange, quickRt); usi.reset(sourceRange);
for (;;) { for (;;) {
if (!usi.next() || usi.isString()) break; if (!usi.next() || usi.isString()) break;
UChar32 c = usi.getCodepoint(); UChar32 c = usi.getCodepoint();
@ -596,7 +596,7 @@ void RTTest::test2(UBool quickRt, int32_t density) {
} }
} }
usi.reset(targetRange, quickRt); usi.reset(targetRange);
for (;;) { for (;;) {
if (!usi.next() || usi.isString()) break; if (!usi.next() || usi.isString()) break;
UChar32 c = usi.getCodepoint(); UChar32 c = usi.getCodepoint();
@ -617,7 +617,7 @@ void RTTest::test2(UBool quickRt, int32_t density) {
parent->logln("Checking that all source characters convert to target - Singles"); parent->logln("Checking that all source characters convert to target - Singles");
UnicodeSet failSourceTarg; UnicodeSet failSourceTarg;
usi.reset(sourceRange, quickRt); usi.reset(sourceRange);
for (;;) { for (;;) {
if (!usi.next() || usi.isString()) break; if (!usi.next() || usi.isString()) break;
UChar32 c = usi.getCodepoint(); UChar32 c = usi.getCodepoint();
@ -708,7 +708,7 @@ void RTTest::test2(UBool quickRt, int32_t density) {
UnicodeSet failTargSource; UnicodeSet failTargSource;
UnicodeSet failRound; UnicodeSet failRound;
usi.reset(targetRange, quickRt); usi.reset(targetRange);
for (;;) { for (;;) {
if (!usi.next()) break; if (!usi.next()) break;
@ -977,9 +977,10 @@ void TransliteratorRoundTripTest::TestJamo() {
void TransliteratorRoundTripTest::TestHangul() { void TransliteratorRoundTripTest::TestHangul() {
RTTest t("Latin-Hangul"); RTTest t("Latin-Hangul");
Legal *legal = new Legal(); Legal *legal = new Legal();
if (quick) t.setPairLimit(1000);
t.test(UnicodeString("[a-zA-Z]", ""), t.test(UnicodeString("[a-zA-Z]", ""),
UnicodeString("[\\uAC00-\\uD7A4]", ""), UnicodeString("[\\uAC00-\\uD7A4]", ""),
NULL, this, quick, legal, 25); NULL, this, quick, legal, 1);
delete legal; delete legal;
} }