From b18e5cb011afeb2e2f910c3fb51c940ab9d90a80 Mon Sep 17 00:00:00 2001 From: "Steven R. Loomis" Date: Wed, 12 Nov 2003 09:04:10 +0000 Subject: [PATCH] ICU-2943 fix tests to call the correct API for getActualMaximum X-SVN-Rev: 13682 --- icu4c/source/test/intltest/calregts.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/icu4c/source/test/intltest/calregts.cpp b/icu4c/source/test/intltest/calregts.cpp index f59e375985..76b0c2e81e 100644 --- a/icu4c/source/test/intltest/calregts.cpp +++ b/icu4c/source/test/intltest/calregts.cpp @@ -1766,11 +1766,11 @@ CalendarRegressionTest::Test4166109() for(int32_t firstInWeek = UCAL_SUNDAY; firstInWeek <= UCAL_SATURDAY; firstInWeek++) { calendar->setFirstDayOfWeek((UCalendarDaysOfWeek)firstInWeek); - int32_t returned = calendar->getActualMaximum(field); + int32_t returned = calendar->getActualMaximum(field, status); int32_t expected = (31 + ((firstInMonth - firstInWeek + 7)% 7) + 6) / 7; logln(UnicodeString("First day of week = ") + firstInWeek + - " getActualMaximum(WEEK_OF_MONTH) = " + returned + + " getActualMaximum(WEEK_OF_MONTH, status) = " + returned + " expected = " + expected + ((returned == expected) ? " ok" : " FAIL")); @@ -1834,7 +1834,7 @@ CalendarRegressionTest::Test4167060() if(U_FAILURE(status)) errln("getTime() failed"); - int32_t maxYear = calendar->getActualMaximum(field); + int32_t maxYear = calendar->getActualMaximum(field, status); UnicodeString temp; logln(UnicodeString("maxYear: ") + maxYear + " for " + format->format(calendar->getTime(status), temp)); temp.remove();