Skip to content

Conversation

@ptomato
Copy link
Contributor

@ptomato ptomato commented Nov 27, 2025

Various tests for constraining day 30 of a month to day 29 when landing in a different month.

As usual, I recommend reviewing PlainDate/prototype/add/ and PlainDate/prototype/with/ carefully and spot-checking the others, which are very similar.

@ptomato ptomato requested a review from a team as a code owner November 27, 2025 20:25
Adds tests for constraining 30 Adar I to 29 Adar when moving from a leap
year to a common year, by the add(), subtract(), or with() methods.

Constraining of the month code is already tested in
leap-months-hebrew.js.
This adds tests for constraining the day when adding years and months in
the Hebrew calendars. Test that 30 gets constrained to 29 in 29-day
months. There are special test cases for the variable lengths of
Cheshvan (M02) and Kislev (M03).
@ptomato ptomato force-pushed the hebrew-calendar-constrain branch from e9efc1b to 9f53e51 Compare November 27, 2025 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant