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-16022 Add test to detect new aliases for BCP47 keys or non-tz values #4358

Conversation

pedberg-icu
Copy link
Contributor

@pedberg-icu pedberg-icu commented Feb 10, 2025

CLDR-16022

  • This PR completes the ticket.

Add a test that detects any new aliases for BCP47 keys, or for BCP47 types other than tz types (for tz types the alias contains the tzdata name so any new zones will require an alias); these should not be added. This test depends on having the cldr-archive available (since it compares BCP47 aliases in the current version to those in the previous version), and is skipped if the flag is set indicating that the archive is not available.

This also adds the unit test TestBCP47 to TestAll(); there are probably more unit tests that should be added to TestAll(), filed CLDR-18301 about that.

ALLOW_MANY_COMMITS=true

// Currently <convertUnits> - and consequently allowedBcp47Units - has a temperature unit
// rankine which is not supported for mu, and hence not in typesFound.
// Filed CLDR-18300 about this but meanwhile typesFound just needs to be a subset of
// allowedBcp47Units.
Copy link
Contributor Author

@pedberg-icu pedberg-icu Feb 10, 2025

Choose a reason for hiding this comment

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

see CLDR-18300 "Support for measure unit Rankine?"

@@ -185,6 +185,7 @@ public TestAll() {
"org.unicode.cldr.unittest.TestAnnotations",
"org.unicode.cldr.unittest.TestAttributeValues",
"org.unicode.cldr.unittest.TestBasic",
"org.unicode.cldr.unittest.TestBCP47",
Copy link
Contributor Author

Choose a reason for hiding this comment

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

see CLDR-18301 "TestAll() in unittest/TestAll.java does not include all of the tests in unittest; should it?"

Copy link
Member

Choose a reason for hiding this comment

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

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, thanks, I resolved CLDR-18301 as a duplicate of CLDR-17708 and copied the linked issues over.

@pedberg-icu pedberg-icu merged commit de2738c into unicode-org:main Feb 11, 2025
13 checks passed
@pedberg-icu pedberg-icu deleted the CLDR-16022-test-no-new-aliases-for-BCP47-except-tz branch February 11, 2025 02:43
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