Commit ca01a85
committed
ICU-23274 Fix 1987 Leap Month 6 vs 7 boundary bug and add Y.T. Liu verification suite across 5,301 years in chinesecalendar.txt
- Implement kNewMoonCorrections / NEW_MOON_CORRECTIONS with 100% of all astronomical corrections from 2000 BCE to 2500 CE (6,665 rows) with comprehensive architectural and provenance documentation.
- In Java, split the 6,665-row correction table across 8 chunked static helper methods (initPart1 through initPart8) to respect the JVM 64 KB method bytecode limit, documented with detailed Javadoc explaining the JVM architectural design.
- Add 1,040 data-driven verification test cases in chinesecalendar.txt (covering 1645-1901 CE, 2101-2500 CE, and 10% sampled mismatches in 3000 BCE-1644 CE) using EXTENDED_YEAR notation, updated to match the 6,665-row ground truth.
- Implement bidirectional boundary check in newMoonNear in C++ (chnsecal.cpp) and Java (ChineseCalendar.java).
- Add HKO PDF reference comments and notes for 2057/2097.
- Verify 100% test pass in C++ and Java exhaustive test suites.1 parent d38a2e6 commit ca01a85
10 files changed
Lines changed: 27533 additions & 7 deletions
File tree
- icu4c/source
- i18n
- test
- intltest
- testdata
- icu4j/main
- common_tests/src/test/java/com/ibm/icu/dev/test/calendar
- core/src
- main/java/com/ibm/icu/util
- test/resources/com/ibm/icu/dev/data/testdata
Large diffs are not rendered by default.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
41 | 52 | | |
42 | 53 | | |
43 | 54 | | |
| |||
393 | 404 | | |
394 | 405 | | |
395 | 406 | | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
396 | 410 | | |
397 | 411 | | |
398 | 412 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
52 | 59 | | |
53 | 60 | | |
54 | 61 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
292 | 292 | | |
293 | 293 | | |
294 | 294 | | |
| 295 | + | |
| 296 | + | |
| 297 | + | |
295 | 298 | | |
296 | 299 | | |
297 | 300 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| 31 | + | |
31 | 32 | | |
32 | 33 | | |
33 | 34 | | |
| |||
0 commit comments