Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Temporal: Reorganize calendar and wrong-type tests #4415

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

brageh01
Copy link

@brageh01 brageh01 commented Mar 4, 2025

Changes made to:

  • PlainDate
  • PlainYearMonth
  • ZonedDateTime
  • PlainDateTime
  • PlainMonthDay

Merged calendar-number.js and calendar-wrong-type.js, due to no special behaviour of number to be tested.

Extracted string tests to calendar-iso-string.js and renamed the file to calendar-invalid-iso-string.js, due to the contents of the file initially testing invalid ISO strings.

Questions:

Are change to be made for the argument-propertybag-calendar-number.js and argument-propertybag-calendar-wrong-type.js files as well?
However, I notice that the argument-propertybag-calendar-iso-string.js actually tests for valid and not invalid ISO strings here. Perhaps create a invalid-iso-string.js?

Is the "merge-and-extract» also relevant for relativeto-propertybag-calendar-number.js and relativeto-propertybag-calendar-wrong-type.js?

@brageh01 brageh01 requested a review from a team as a code owner March 4, 2025 11:32
@brageh01 brageh01 changed the title Reorganize calendar and wrong-type tests Temporal: Reorganize calendar and wrong-type tests Mar 5, 2025
@sffc
Copy link
Contributor

sffc commented Mar 5, 2025

Issue: #3873

@sffc
Copy link
Contributor

sffc commented Mar 5, 2025

About the questions: my sense is that the propertybag tests are probably also in scope to be refactored here in a similar 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