が 5 月と 6 月の間に挿入される。年ごとに 5 年分、月コードの並びを丸ごと検証している。 // test/intl402/Temporal/PlainDate/prototype/monthCode/ // leap-months-hebrew.js const commonMonths = ["M01","M02","M03","M04","M05", "M06","M07","M08","M09","M10","M11","M12"]; const leapMonths = ["M01","M02","M03","M04","M05","M05L","M06","M07","M08","M09","M10","M11","M12"]; for (var year = 5730; year < 5735; year++) { const at = (m) => Temporal.PlainDate.from( { year, month: m, calendar: "hebrew", day: 1 }); const monthsInYear = at(1).monthsInYear; for (var month = 1; month < monthsInYear; month++) { const expected = at(month).inLeapYear ? leapMonths : commonMonths; assert.sameValue(at(month).monthCode, expected[month - 1]); } }