From 43f214f329e1857d2978e533e0507e418d5f7b22 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Bargull?= Date: Mon, 16 Oct 2023 13:28:25 +0200 Subject: [PATCH] Update likely subtags tests for CLDR 44 --- test/intl402/Locale/likely-subtags.js | 9 +++++---- .../removing-likely-subtags-first-adds-likely-subtags.js | 2 +- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/test/intl402/Locale/likely-subtags.js b/test/intl402/Locale/likely-subtags.js index 44761f34a19..20326095e83 100644 --- a/test/intl402/Locale/likely-subtags.js +++ b/test/intl402/Locale/likely-subtags.js @@ -35,12 +35,13 @@ const testDataMaximal = { "und": "en-Latn-US", "und-Thai": "th-Thai-TH", "und-419": "es-Latn-419", - "und-150": "ru-Cyrl-RU", + "und-150": "en-Latn-150", "und-AT": "de-Latn-AT", "und-Cyrl-RO": "bg-Cyrl-RO", - // Undefined primary language not required to change in all cases. - "und-AQ": "und-Latn-AQ", + // Before CLDR 44, "und" primary language subtag was left unchanged in some + // cases. Starting with CLDR 44, the "und" language subtag is always replaced. + "und-AQ": "en-Latn-AQ", }; const testDataMinimal = { @@ -67,7 +68,7 @@ const testDataMinimal = { "ru-Cyrl-RU": "ru", "de-Latn-AT": "de-AT", "bg-Cyrl-RO": "bg-RO", - "und-Latn-AQ": "und-AQ", + "und-Latn-AQ": "en-AQ", }; // Add variants, extensions, and privateuse subtags and ensure they don't diff --git a/test/intl402/Locale/prototype/minimize/removing-likely-subtags-first-adds-likely-subtags.js b/test/intl402/Locale/prototype/minimize/removing-likely-subtags-first-adds-likely-subtags.js index 98c28fdd1ba..3a89403dcf0 100644 --- a/test/intl402/Locale/prototype/minimize/removing-likely-subtags-first-adds-likely-subtags.js +++ b/test/intl402/Locale/prototype/minimize/removing-likely-subtags-first-adds-likely-subtags.js @@ -23,7 +23,7 @@ var testDataMinimal = { "und": "en", "und-Thai": "th", "und-419": "es-419", - "und-150": "ru", + "und-150": "en-150", "und-AT": "de-AT", // https://unicode-org.atlassian.net/browse/ICU-13786