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 verifying that duplicate variants in the tlang component of a language tag make it structurally invalid #2858

Merged

Conversation

jswalden
Copy link
Contributor

@jswalden jswalden commented Oct 9, 2020

(This is currently un-exercised so may contain tpyos or similar -- posting so I can test that it works correctly against SM by importing it.)

@FrankYFTang
Copy link
Contributor

could we separate the dup variant and dup tl into two different test files?

@FrankYFTang
Copy link
Contributor

Just split them into two files like
test/intl402/Locale/reject-duplicate-variants.js
test/intl402/Locale/reject-duplicate-in-tlang.js

… component of a tag, make it structurally invalid.
@jswalden jswalden force-pushed the test-duplicate-variants-in-tlang-rejected branch from cdd06ae to d603eec Compare October 9, 2020 05:36
@jswalden
Copy link
Contributor Author

jswalden commented Oct 9, 2020

I would be surprised if we don't have tests for rejecting duplicate variants already -- I included them mostly for reader understandability -- but sure, split into separate tests, with corresponding wording changes and so on.

@rwaldron
Copy link
Contributor

rwaldron commented Oct 9, 2020

@syg heads up for failures in V8

@rwaldron rwaldron merged commit 2cfccb7 into tc39:main Oct 9, 2020
@jswalden jswalden deleted the test-duplicate-variants-in-tlang-rejected branch October 11, 2020 08:12
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.

3 participants