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

Add a test for ecma402#877 #4437

Merged
merged 2 commits into from
Mar 26, 2025
Merged

Add a test for ecma402#877 #4437

merged 2 commits into from
Mar 26, 2025

Conversation

ryzokuken
Copy link
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
Contributor

@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.

@ryzokuken
Copy link
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

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 <[email protected]>
@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