mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-08 06:53:45 +00:00
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:
parent
0812949ed9
commit
025c58554c
1 changed files with 0 additions and 10 deletions
|
@ -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++];
|
||||
|
|
Loading…
Add table
Reference in a new issue