Skip to content

Conversation

@ptomato
Copy link
Contributor

@ptomato ptomato commented Nov 25, 2025

Adds tests for arithmetic involving the M13 intercalary month in the coptic, ethioaa, and ethiopic calendars. The three calendars have the same structure, just different eras and year numbering, so the tests are very similar between the three calendars. As usual, the PlainDateTime and ZonedDateTime tests are similar to the PlainDate ones; add() tests are similar to subtract() ones; and since() tests are similar to until() ones.

For reviewing, I recommend picking one calendar, and reading the PlainDate/prototype/{add,until,with} folders carefully, and just spot-checking the rest.

This adds tests for addition and subtraction on leap day (M13-06) and
constraining to M13-05 in common years for the three Orthodox calendars
(coptic, ethioaa, ethiopic).
Similar to the previous commit, this adds tests for adjusting the year
number using the with() method on leap day (M13-06) and constraining to
M13-05 in common years for the three Orthodox calendars (coptic,
ethioaa, ethiopic).
This adds tests for constraining the day when adding months in the three
Orthodox calendars (coptic, ethioaa, ethiopic). Adding years is already
covered in the leap-year-*.js tests. The only time that the days need to
be constrained to the end of the month is in the epagomenal month (M13),
since all the other months always have 30 days.
This adds tests for constraining the day when changing the month code
using the with() method in the three Orthodox calendars (coptic,
ethioaa, ethiopic). Adding years is already covered in the
leap-year-*.js tests. The only time that the days need to be
constrained to the end of the month is in the epagomenal month
(M13), since all the other months always have 30 days.
…lendars

This adds tests for computing the difference between two dates in the
three Orthodox calendars (coptic, ethioaa, ethiopic) specifically in
and across the epagomenal month (M13).
@ptomato ptomato requested a review from a team as a code owner November 25, 2025 02:18
@ptomato ptomato mentioned this pull request Nov 25, 2025
19 tasks
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