ICU-6991 Remove unneeded error code check and other errors.

X-SVN-Rev: 26608
This commit is contained in:
Michael Ow 2009-09-07 07:09:52 +00:00
parent c69b37b9c8
commit 1ad7caa833
2 changed files with 7 additions and 12 deletions

View File

@ -308,7 +308,7 @@ CalendarTest::TestGenericAPI()
logln("cal->roll(UCAL_SECOND)"); logln("cal->roll(UCAL_SECOND)");
cal->roll(UCAL_SECOND, (UBool) TRUE, status); cal->roll(UCAL_SECOND, (UBool) TRUE, status);
logln(UnicodeString("cal=") +cal->getTime(status) + UnicodeString(calToStr(*cal))); logln(UnicodeString("cal=") +cal->getTime(status) + UnicodeString(calToStr(*cal)));
cal->roll(UCAL_SECOND, 0, status); cal->roll(UCAL_SECOND, (int32_t)0, status);
logln(UnicodeString("cal=") +cal->getTime(status) + UnicodeString(calToStr(*cal))); logln(UnicodeString("cal=") +cal->getTime(status) + UnicodeString(calToStr(*cal)));
if (failure(status, "Calendar::roll")) return; if (failure(status, "Calendar::roll")) return;

View File

@ -2694,22 +2694,17 @@ void NumberFormatTest::TestNumberingSystems() {
dataerrln("FAIL: NumberingSystem::createInstance(ec); - %s", u_errorName(ec)); dataerrln("FAIL: NumberingSystem::createInstance(ec); - %s", u_errorName(ec));
} }
NumberingSystem ns1 = NumberingSystem::NumberingSystem();
NumberingSystem ns2 = NumberingSystem::NumberingSystem(ns1);
if (U_FAILURE(ec)) {
dataerrln("FAIL: NumberingSystem::NumberingSystem(ns1); - %s", u_errorName(ec));
}
ns->getDynamicClassID(); ns->getDynamicClassID();
if (U_FAILURE(ec)) {
dataerrln("FAIL: NumberingSystem::getDynamicClassID(); - %s", u_errorName(ec));
}
ns->getStaticClassID(); ns->getStaticClassID();
if (U_FAILURE(ec)) {
dataerrln("FAIL: NumberingSystem::getStaticClassID(); - %s", u_errorName(ec)); NumberingSystem *ns1 = new NumberingSystem(*ns);
if (ns1 == NULL) {
errln("FAIL: NumberSystem copy constructor returned NULL.");
} }
delete ns1;
delete ns;
delete fmt1; delete fmt1;
delete fmt2; delete fmt2;
delete fmt3; delete fmt3;