Skip to content

Conversation

@ioannad
Copy link
Contributor

@ioannad ioannad commented Dec 19, 2025

Also homogenise format of existing tests, adding the test for unknown calendar id u-ca=notacal.

This addresses issue #3896

Two tests (argument-string-* and argument-propertybag-* are added or addended
for the following.

Duration.(round, total)'s option relativeTo,
Duration.compare's option relativeTo,
PlainDate.prototype.(equals, since, until),
PlainDate.(from, compare),
PlainDateTime.prototype.(equals, since, until),
PlainDateTime.(from, compare),
PlainMonthDay.prototype.equals,
PlainMonthDay.from,
PlainYearMonth.prototype.(equals, since, until),
PlainDate.(from, compare),
ZonedDateTime.prototype.(equals, since, until),
ZonedDateTime.(from, compare)

The tests calendar-invalid-iso-string.js with string arguments are addended
for each constructor and each withCalendar (these do not take argument bags).

@ioannad ioannad requested a review from a team as a code owner December 19, 2025 18:17
@ioannad ioannad marked this pull request as draft December 26, 2025 13:25
@ioannad
Copy link
Contributor Author

ioannad commented Dec 26, 2025

Found some mistakes, converting to draft while I fix them.

Also homogenise format of existing tests, adding the test for unknown calendar id u-ca=notacal.

This addresses issue tc39#3896

Two tests (argument-string-* and argument-propertybag-* are added or addended
for the following.

    Duration.(round, total)'s option relativeTo,
    Duration.compare's option relativeTo,
    PlainDate.prototype.(equals, since, until),
    PlainDate.(from, compare),
    PlainDateTime.prototype.(equals, since, until),
    PlainDateTime.(from, compare),
    PlainMonthDay.prototype.equals,
    PlainMonthDay.from,
    PlainYearMonth.prototype.(equals, since, until),
    PlainDate.(from, compare),
    ZonedDateTime.prototype.(equals, since, until),
    ZonedDateTime.(from, compare)

The tests calendar-invalid-iso-string.js with string arguments are addended
for each constructor and each withCalendar (these do not take argument bags).
@ioannad ioannad force-pushed the Temporal-unknown-calendar-tests branch from d7217b7 to 7bedd62 Compare December 29, 2025 01:16
@ioannad ioannad marked this pull request as ready for review December 29, 2025 01:17
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.

1 participant