Skip to content

Conversation

@ben-allen
Copy link
Contributor

Added tests to Temporal.PlainDate, Temporal.PlainDateTime, and Temporal.ZonedDateTime ensuring weekOfYear only defined for "iso8601" calendar

Temporal.ZonedDateTime ensuring weekOfYear only defined for "iso8601" calendar
@ben-allen ben-allen mentioned this pull request Nov 3, 2025
9 tasks
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.

A couple of things with these tests:

  • They need to test yearOfWeek as well as weekOfYear
  • ISO8601 calendar giving week numbers needs to be tested in the non-Intl-only section (but in fact already is, so you can just drop that part)
  • I think it'd be good to move these into test/intl402/Temporal/{PlainDate,PlainDateTime,ZonedDateTime}/prototype/{weekOfYear,yearOfWeek}/non-iso-week-of-year.js which already tests this but in an incomplete way.

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