Skip to content

Add a test verifying that duplicate variants in the tlang component of a language tag make it structurally invalid#2858

Merged
rwaldron merged 1 commit intotc39:mainfrom
jswalden:test-duplicate-variants-in-tlang-rejected
Oct 9, 2020
Merged

Add a test verifying that duplicate variants in the tlang component of a language tag make it structurally invalid#2858
rwaldron merged 1 commit intotc39:mainfrom
jswalden:test-duplicate-variants-in-tlang-rejected

Conversation

@jswalden
Copy link
Copy Markdown
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
Copy Markdown
Contributor

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

@FrankYFTang
Copy link
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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