ICU-6806 Updated DateTimeGeneratorTest/TestOrdering. The test code is preserved, but no longer report ordering differences as errors.

X-SVN-Rev: 32587
This commit is contained in:
Yoshito Umaoka 2012-10-10 15:12:05 +00:00
parent 0edd67f4ef
commit 76b8cbd675

View file

@ -568,15 +568,9 @@ public class DateTimeGeneratorTest extends TestFmwk {
DateOrder order1 = getOrdering(style1, uLocale);
DateOrder order2 = getOrdering(style2, uLocale);
if (!order1.hasSameOrderAs(order2)) {
if (order1.monthLength == order2.monthLength) { // error if have same month length, different ordering
if (isICUVersionBefore(50, 1, 0)) { // ticket#6806
logln(showOrderComparison(uLocale, style1, style2, order1, order2));
} else {
errln(showOrderComparison(uLocale, style1, style2, order1, order2));
}
} else if (isVerbose() && order1.monthLength > 2 && order2.monthLength > 2) { // warn if both are not numeric
logln(showOrderComparison(uLocale, style1, style2, order1, order2));
}
// Note: This test case was updated by #6806 and no longer reports
// ordering difference as an error case.
logln(showOrderComparison(uLocale, style1, style2, order1, order2));
}
}