ICU-7968 Add a timebomb to TestFirstCharacters.

X-SVN-Rev: 28668
This commit is contained in:
Yoshito Umaoka 2010-09-21 20:56:07 +00:00
parent c6c2a855a7
commit 4d0bdec81e

View File

@ -164,6 +164,7 @@ public class AlphabeticIndexTest extends TestFmwk {
}
public void TestFirstCharacters() {
AlphabeticIndex alphabeticIndex = new AlphabeticIndex(Locale.ENGLISH);
RuleBasedCollator collator = alphabeticIndex.getCollator();
collator.setStrength(Collator.IDENTICAL);
@ -183,9 +184,11 @@ public class AlphabeticIndexTest extends TestFmwk {
missingScripts.removeAll(s);
}
if (missingScripts.size() != 0) {
if (!skipIfBeforeICU(4,5,2)) { // ticket#7968
errln("Missing character from: " + missingScripts);
}
}
}
public void TestBuckets() {
ULocale additionalLocale = ULocale.ENGLISH;