Skip to content

Conversation

@catamorphism
Copy link
Contributor

Closes #4614

@catamorphism catamorphism force-pushed the issue-4614 branch 3 times, most recently from 10f5b2f to 9e53d64 Compare November 14, 2025 01:18
@catamorphism catamorphism marked this pull request as ready for review November 14, 2025 01:19
@catamorphism catamorphism requested review from a team as code owners November 14, 2025 01:19
Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I didn't get all the way through it but here are some comments to go on.

Copy link
Contributor

@ptomato ptomato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think I'd recommend one of two things for this PR:

  • Either leave all the tests in their original files and just delete the tests that invoke ill-defined years, and split them up in one or more follow-up PRs;
  • Or we should expand the split-up tests in this PR to get better coverage (e.g., testing more than one year in inLeapYear and monthsInYear, etc.)

staging/sm/Temporal/PlainMonthDay/from-chinese-leap-month-common.js seems to invoke invalid Chinese years too.

@catamorphism
Copy link
Contributor Author

staging/sm/Temporal/PlainMonthDay/from-chinese-leap-month-common.js seems to invoke invalid Chinese years too.

Done in da4c282

@catamorphism
Copy link
Contributor Author

  • Or we should expand the split-up tests in this PR to get better coverage (e.g., testing more than one year in inLeapYear and monthsInYear, etc.)

I've tried to expand some of the tests to get better coverage. The PR is getting pretty big, so I'd rather do any further improvements in coverage in a future PR.

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.

Temporal tests should not test out-of-normal-range Chinese calendar values

3 participants