diff --git a/icu4c/source/test/intltest/caltest.cpp b/icu4c/source/test/intltest/caltest.cpp index 29ffae5e5d..99171e2465 100644 --- a/icu4c/source/test/intltest/caltest.cpp +++ b/icu4c/source/test/intltest/caltest.cpp @@ -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; diff --git a/icu4c/source/test/intltest/numfmtst.cpp b/icu4c/source/test/intltest/numfmtst.cpp index d23fd48902..46e511064c 100644 --- a/icu4c/source/test/intltest/numfmtst.cpp +++ b/icu4c/source/test/intltest/numfmtst.cpp @@ -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; } }