ICU-2424 fix for UObject deleter

X-SVN-Rev: 13883
This commit is contained in:
Steven R. Loomis 2003-11-25 19:19:45 +00:00
parent 8fb196e023
commit 6e983dcf53

View File

@ -135,7 +135,7 @@ void AstroTest::TestCoordinates(void) {
CalendarAstronomer::Equatorial *result = astro->eclipticToEquatorial(139.686111 * CalendarAstronomer::PI / 180.0, 4.875278* CalendarAstronomer::PI / 180.0); CalendarAstronomer::Equatorial *result = astro->eclipticToEquatorial(139.686111 * CalendarAstronomer::PI / 180.0, 4.875278* CalendarAstronomer::PI / 180.0);
logln((UnicodeString)"result is " + result->toString() + (UnicodeString)"; " /* + result->toHmsString()*/ ); logln((UnicodeString)"result is " + result->toString() + (UnicodeString)"; " /* + result->toHmsString()*/ );
// delete result; delete result;
closeAstro(status); closeAstro(status);
ASSERT_OK(status); ASSERT_OK(status);
} }
@ -177,12 +177,12 @@ void AstroTest::TestCoverage(void) {
logln((UnicodeString)" gw sidereal: " + astro->getGreenwichSidereal()); logln((UnicodeString)" gw sidereal: " + astro->getGreenwichSidereal());
logln((UnicodeString)" loc sidereal: " + astro->getLocalSidereal()); logln((UnicodeString)" loc sidereal: " + astro->getLocalSidereal());
logln((UnicodeString)" equ ecl: " + (eq=astro->eclipticToEquatorial(*ecl))->toString()); logln((UnicodeString)" equ ecl: " + (eq=astro->eclipticToEquatorial(*ecl))->toString());
//delete eq; delete eq;
logln((UnicodeString)" equ long: " + (eq=astro->eclipticToEquatorial(eclLong))->toString()); logln((UnicodeString)" equ long: " + (eq=astro->eclipticToEquatorial(eclLong))->toString());
//delete eq; delete eq;
CalendarAstronomer::Horizon *hor = NULL; CalendarAstronomer::Horizon *hor = NULL;
logln((UnicodeString)" horiz: " + (hor=astro->eclipticToHorizon(eclLong))->toString()); logln((UnicodeString)" horiz: " + (hor=astro->eclipticToHorizon(eclLong))->toString());
//delete hor; delete hor;
logln((UnicodeString)" sunrise: " + (astro->getSunRiseSet(TRUE))); logln((UnicodeString)" sunrise: " + (astro->getSunRiseSet(TRUE)));
logln((UnicodeString)" sunset: " + (astro->getSunRiseSet(FALSE))); logln((UnicodeString)" sunset: " + (astro->getSunRiseSet(FALSE)));
logln((UnicodeString)" moon phase: " + astro->getMoonPhase()); logln((UnicodeString)" moon phase: " + astro->getMoonPhase());