ICU-6991 Code coverage for missing functions in Calendar and NumberFormat.
X-SVN-Rev: 26602
This commit is contained in:
parent
ddefb74427
commit
222da0d6ad
@ -305,11 +305,13 @@ CalendarTest::TestGenericAPI()
|
||||
cal->after(*cal2, status) ||
|
||||
U_FAILURE(status)) errln("FAIL: equals/before/after failed after setTime(+1000)");
|
||||
|
||||
logln("cal1->roll(UCAL_SECOND)");
|
||||
logln("cal->roll(UCAL_SECOND)");
|
||||
cal->roll(UCAL_SECOND, (UBool) TRUE, status);
|
||||
logln(UnicodeString("cal=") +cal->getTime(status) + UnicodeString(calToStr(*cal)));
|
||||
|
||||
cal->roll(UCAL_SECOND, 0, status);
|
||||
logln(UnicodeString("cal=") +cal->getTime(status) + UnicodeString(calToStr(*cal)));
|
||||
if (failure(status, "Calendar::roll")) return;
|
||||
|
||||
if (!(eq=cal->equals(*cal2, status)) ||
|
||||
(b4=cal->before(*cal2, status)) ||
|
||||
(af=cal->after(*cal2, status)) ||
|
||||
@ -401,6 +403,10 @@ CalendarTest::TestGenericAPI()
|
||||
if (cal->isSet((UCalendarDateFields)i)) errln("FAIL: Calendar::clear/isSet failed " + fieldName((UCalendarDateFields)i));
|
||||
}
|
||||
|
||||
if(cal->getActualMinimum(UCAL_SECOND, status) != 0){
|
||||
errln("Calendar is suppose to return 0 for getActualMinimum");
|
||||
}
|
||||
|
||||
delete cal;
|
||||
delete cal2;
|
||||
|
||||
|
@ -148,6 +148,12 @@ NumberFormatTest::TestAPI(void)
|
||||
errln("format int64_t error");
|
||||
}
|
||||
|
||||
ParsePosition ppos;
|
||||
test->parseCurrency("",bla,ppos);
|
||||
if(U_FAILURE(status)) {
|
||||
errln("Problems accessing the parseCurrency function for NumberFormat");
|
||||
}
|
||||
|
||||
delete test;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user