Skip to content

Conversation

@ptomato
Copy link
Contributor

@ptomato ptomato commented Nov 27, 2025

Various tests for constraining day 31 of a month to day 30 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 22:34
Adds tests for constraining 31 Chaitra to 30 Chaitra when moving from a
leap year to a common year, by the add(), subtract(), or with() methods.
This adds tests for constraining the day when adding months in the
Indian calendar. Adding years is already tested in leap-year-indian.js.
Test that 31 gets constrained to 30 in 30-day months.
@Ms2ger Ms2ger force-pushed the indian-calendar-constrain branch from a2f84e3 to 4c1af80 Compare November 28, 2025 13:21
@Ms2ger Ms2ger merged commit fe0e7c4 into tc39:main Nov 28, 2025
12 checks passed
@ptomato ptomato deleted the indian-calendar-constrain branch November 28, 2025 16:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants