My working unpac space for OCaml projects in development
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Intl Era Monthcode: Fix Hebrew daysInYear tests

I am pretty sure these are just typos. Confirmed informally with two
online Hebrew calendar converter apps
(https://www.torahcalc.com/tools/date-converter and
https://webspace.science.uu.nl/~gent0113/hebrew/hebrewyear.htm) and the
algorithms in SpiderMonkey and V8 also agree.

Also add a debug message to make it possible to see which year failed.

authored by

Philip Chimento and committed by
Ms2ger
efa8b23e f01836cd

+24 -12
+6 -3
vendor/git/test262/test/intl402/Temporal/PlainDate/prototype/daysInYear/basic-hebrew.js
··· 4 4 /*--- 5 5 esid: sec-temporal.plaindate.prototype.daysinyear 6 6 description: Days in year in the Hebrew calendar 7 + info: | 8 + There are discrepancies in these data between ICU4C 77.1 and ICU4C 78.1, 9 + which will affect implementations relying on ICU4C. 7 10 features: [Temporal, Intl.Era-monthcode] 8 11 ---*/ 9 12 ··· 87 90 5803: 385, 88 91 5804: 353, 89 92 5805: 355, 90 - 5806: 385, 91 - 5807: 354, 93 + 5806: 384, 94 + 5807: 355, 92 95 5808: 353, 93 96 5809: 384, 94 97 } ··· 99 102 month: 1, 100 103 calendar, day: 1 101 104 }); 102 - assert.sameValue(date.daysInYear, days); 105 + assert.sameValue(date.daysInYear, days, `days in year ${year}`); 103 106 }
+6 -3
vendor/git/test262/test/intl402/Temporal/PlainDateTime/prototype/daysInYear/basic-hebrew.js
··· 4 4 /*--- 5 5 esid: sec-temporal.plaindatetime.prototype.daysinyear 6 6 description: Days in year in the Hebrew calendar 7 + info: | 8 + There are discrepancies in these data between ICU4C 77.1 and ICU4C 78.1, 9 + which will affect implementations relying on ICU4C. 7 10 features: [Temporal, Intl.Era-monthcode] 8 11 ---*/ 9 12 ··· 87 90 5803: 385, 88 91 5804: 353, 89 92 5805: 355, 90 - 5806: 385, 91 - 5807: 354, 93 + 5806: 384, 94 + 5807: 355, 92 95 5808: 353, 93 96 5809: 384, 94 97 } ··· 99 102 month: 1, 100 103 calendar, day: 1, hour: 12, minute: 34 101 104 }); 102 - assert.sameValue(date.daysInYear, days); 105 + assert.sameValue(date.daysInYear, days, `days in year ${year}`); 103 106 }
+6 -3
vendor/git/test262/test/intl402/Temporal/PlainYearMonth/prototype/daysInYear/basic-hebrew.js
··· 4 4 /*--- 5 5 esid: sec-temporal.plainyearmonth.prototype.daysinyear 6 6 description: Days in year in the Hebrew calendar 7 + info: | 8 + There are discrepancies in these data between ICU4C 77.1 and ICU4C 78.1, 9 + which will affect implementations relying on ICU4C. 7 10 features: [Temporal, Intl.Era-monthcode] 8 11 ---*/ 9 12 ··· 87 90 5803: 385, 88 91 5804: 353, 89 92 5805: 355, 90 - 5806: 385, 91 - 5807: 354, 93 + 5806: 384, 94 + 5807: 355, 92 95 5808: 353, 93 96 5809: 384, 94 97 } ··· 99 102 month: 1, 100 103 calendar 101 104 }); 102 - assert.sameValue(date.daysInYear, days); 105 + assert.sameValue(date.daysInYear, days, `days in year ${year}`); 103 106 }
+6 -3
vendor/git/test262/test/intl402/Temporal/ZonedDateTime/prototype/daysInYear/basic-hebrew.js
··· 4 4 /*--- 5 5 esid: sec-temporal.zoneddatetime.prototype.daysinyear 6 6 description: Days in year in the Hebrew calendar 7 + info: | 8 + There are discrepancies in these data between ICU4C 77.1 and ICU4C 78.1, 9 + which will affect implementations relying on ICU4C. 7 10 features: [Temporal, Intl.Era-monthcode] 8 11 ---*/ 9 12 ··· 87 90 5803: 385, 88 91 5804: 353, 89 92 5805: 355, 90 - 5806: 385, 91 - 5807: 354, 93 + 5806: 384, 94 + 5807: 355, 92 95 5808: 353, 93 96 5809: 384, 94 97 } ··· 99 102 month: 1, 100 103 calendar, day: 1, hour: 12, minute: 34, timeZone: "UTC" 101 104 }); 102 - assert.sameValue(date.daysInYear, days); 105 + assert.sameValue(date.daysInYear, days, `days in year ${year}`); 103 106 }