Skip to content

Add a test for ecma402#877#4437

Merged
gibson042 merged 2 commits intotc39:mainfrom
ryzokuken:ecma402-877
Mar 26, 2025
Merged

Add a test for ecma402#877#4437
gibson042 merged 2 commits intotc39:mainfrom
ryzokuken:ecma402-877

Conversation

@ryzokuken
Copy link
Copy Markdown
Member

@ryzokuken ryzokuken commented Mar 24, 2025

Adds a test to check the time zone canonicalization logic to verify that the new normative requirements for canonicalizing time zone introduced by tc39/ecma402#877 are implemented correctly.

Ref: tc39/ecma402#825
Ref: unicode-org/cldr#3105
Fixes: #4363

@ryzokuken ryzokuken self-assigned this Mar 24, 2025
@ryzokuken ryzokuken requested a review from a team as a code owner March 24, 2025 10:14
Copy link
Copy Markdown
Member

@gibson042 gibson042 left a comment

Choose a reason for hiding this comment

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

Thanks @ryzokuken! My suggestions relate to adding more spec context and exercising more branches of the AvailableNamedTimeZoneIdentifiers algorithm.

Comment thread test/intl402/DateTimeFormat/canonicalize-timezone.js
Comment thread test/intl402/DateTimeFormat/canonicalize-timezone.js Outdated
@ryzokuken
Copy link
Copy Markdown
Member Author

Done! The following test fails on V8 (cc @FrankYFTang)

FAIL test/intl402/DateTimeFormat/canonicalize-timezone.js (default)
  Time zone name Pacific/Truk should be canonicalized to Pacific/Chuuk Expected SameValue(«"Pacific/Truk"», «"Pacific/Chuuk"») to be true

Comment thread test/intl402/DateTimeFormat/canonicalize-timezone.js Outdated
ryzokuken and others added 2 commits March 26, 2025 10:52
Adds a test to check the time zone canonicalization logic to verify that
the new normative requirements for canonicalizing time zone introduced
by ecma402#877 are implemented correctly.
Add more important test cases and improve the frontmatter to add more
context from the spec.

Co-authored-by: Richard Gibson <richard.gibson@gmail.com>
@gibson042 gibson042 merged commit 8f7c679 into tc39:main Mar 26, 2025
11 checks passed
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.

Need to add test to test ECMA402 PR 877

2 participants