icu/backport-Fix-broken-TestHebrewCalendarInTemporalLeapYear.patch
zhouwenpei f59d22c2ed Fix broken TestHebrewCalendarInTemporalLeapYear
(cherry picked from commit 5bca2de85a481192a7b7ed04d22e8cc6ae9d6177)
2023-09-19 15:26:15 +08:00

30 lines
1.1 KiB
Diff

From b6b3e89231a623441940889b5badd90f74bdce2b Mon Sep 17 00:00:00 2001
From: Frank Tang <ftang@chromium.org>
Date: Mon, 18 Sep 2023 20:20:42 -0700
Subject: [PATCH] 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.
---
source/test/intltest/caltest.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/source/test/intltest/caltest.cpp b/source/test/intltest/caltest.cpp
index 7518f11..ab63e75 100644
--- a/source/test/intltest/caltest.cpp
+++ b/source/test/intltest/caltest.cpp
@@ -4006,6 +4006,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;
}
--
2.33.0