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

CLDR-17345 In testLanguageTagParserIsValid, mark co-reformed as valid (though deprecated) #3505

Conversation

pedberg-icu
Copy link
Contributor

CLDR-17345

  • This PR completes the ticket.

Fix the earlier test failure in testLanguageTagParserIsValid() the right way, by marking co-reformed as valid (even though it is deprecated), as is done with co-direct. Then remove the logKnownIssue added earlier.

ALLOW_MANY_COMMITS=true

Copy link
Member

@markusicu markusicu left a comment

Choose a reason for hiding this comment

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

Thanks, this looks good as far as it is handling this like other deprecated key-value pairs.

However, I am still baffled that deprecated values should fail the validity test at all. It seems wrong that we need special handling in the test code.

@pedberg-icu
Copy link
Contributor Author

Thanks, this looks good as far as it is handling this like other deprecated key-value pairs.

However, I am still baffled that deprecated values should fail the validity test at all. It seems wrong that we need special handling in the test code.

I think the LTP Is treating them as valid, but the test code is comparing LTP results against the set provided by SupplementalDataInfo which may not include the deprecated ones, so the test code needs to add those in. I will check.

@pedberg-icu pedberg-icu merged commit d6ec5ba into unicode-org:main Feb 14, 2024
10 checks passed
@markusicu
Copy link
Member

Thanks, this looks good as far as it is handling this like other deprecated key-value pairs.
However, I am still baffled that deprecated values should fail the validity test at all. It seems wrong that we need special handling in the test code.

I think the LTP Is treating them as valid, but the test code is comparing LTP results against the set provided by SupplementalDataInfo which may not include the deprecated ones, so the test code needs to add those in. I will check.

Ok, so it seems like the best way to fix this is to ask SupplementalDataInfo for both "valid" and "deprecated" values.
We promise stable identifiers, which means that we deprecate but do not remove. Implementation and tests should both follow that.

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.

2 participants