mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-16 18:25:57 +00:00
ICU-3746 make test faster
X-SVN-Rev: 15344
This commit is contained in:
parent
d9e5047559
commit
0e38a87556
1 changed files with 4 additions and 2 deletions
|
@ -1,6 +1,6 @@
|
|||
/*
|
||||
*******************************************************************************
|
||||
* Copyright (C) 2003, International Business Machines Corporation and *
|
||||
* Copyright (C) 2003-2004, International Business Machines Corporation and *
|
||||
* others. All Rights Reserved. *
|
||||
*******************************************************************************
|
||||
*/
|
||||
|
@ -105,17 +105,19 @@ public class LocaleDataTest extends TestFmwk{
|
|||
boolean existsInScript = false;
|
||||
UnicodeSetIterator iter = new UnicodeSetIterator(exemplarSet);
|
||||
// iterate over the
|
||||
while (iter.nextRange()) {
|
||||
while (!existsInScript && iter.nextRange()) {
|
||||
if (iter.codepoint != UnicodeSetIterator.IS_STRING) {
|
||||
for(int j=0; j<sets.length; j++){
|
||||
if(sets[j].contains(iter.codepoint, iter.codepointEnd)){
|
||||
existsInScript = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
} else {
|
||||
for(int j=0; j<sets.length; j++){
|
||||
if(sets[j].contains(iter.string)){
|
||||
existsInScript = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue