ICU-6503 Revert testFormat to do the full test in non-exhaustive mode. With the performance improvement, the test case no longer takes excessive time.

X-SVN-Rev: 24675
This commit is contained in:
Yoshito Umaoka 2008-09-29 21:42:14 +00:00
parent 0812949ed9
commit 025c58554c

View file

@ -610,13 +610,11 @@ public class DateIntervalFormatTest extends com.ibm.icu.dev.test.TestFmwk {
private void expect(String[] data, int data_length) {
int i = 1;
int count = 0;
while (i<data_length) {
String locName = data[i++];
ULocale loc = new ULocale(locName);
SimpleDateFormat ref = new SimpleDateFormat(data[0], loc);
// 'f'
count++;
String datestr = data[i++];
String datestr_2 = data[i++];
Date date, date_2;
@ -629,15 +627,7 @@ public class DateIntervalFormatTest extends com.ibm.icu.dev.test.TestFmwk {
}
DateInterval dtitv = new DateInterval(date.getTime(),
date_2.getTime());
String oneSkeleton = data[i++];
// Skipping some test case in the non-exhaustive mode to reduce the test time
//ticket#6503
if(params.inclusion<=5 && count%3!=0){
i++;
continue;
}
DateIntervalFormat dtitvfmt = DateIntervalFormat.getInstance(
oneSkeleton, loc);
String expected = data[i++];