mirror of
https://github.com/unicode-org/icu.git
synced 2025-04-10 07:39:16 +00:00
ICU-22512 Fix broken TestHebrewCalendarInTemporalLeapYear
Fix broken test mistakenly landed in https://github.com/unicode-org/icu/pull/2274 Some important steps were missed in the last landing.
This commit is contained in:
parent
d8659b476d
commit
f3b869cbb0
1 changed files with 2 additions and 0 deletions
|
@ -4028,6 +4028,7 @@ void CalendarTest::TestHebrewCalendarInTemporalLeapYear() {
|
|||
for (gc.set(startYear, UCAL_JANUARY, 1);
|
||||
gc.get(UCAL_YEAR, status) <= stopYear;
|
||||
gc.add(UCAL_DATE, incrementDays, status)) {
|
||||
cal->setTime(gc.getTime(status), status);
|
||||
if (failure(status, "add/get/set/getTime/setTime incorrect")) return;
|
||||
|
||||
int32_t cal_year = cal->get(UCAL_EXTENDED_YEAR, status);
|
||||
|
@ -4036,6 +4037,7 @@ void CalendarTest::TestHebrewCalendarInTemporalLeapYear() {
|
|||
leapTest->set(UCAL_MONTH, 0);
|
||||
leapTest->set(UCAL_DATE, 1);
|
||||
// If 10 months after TISHRI is TAMUZ, then it is a leap year.
|
||||
leapTest->add(UCAL_MONTH, 10, status);
|
||||
hasLeapMonth = leapTest->get(UCAL_MONTH, status) == icu::HebrewCalendar::TAMUZ;
|
||||
yearForHasLeapMonth = cal_year;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue