From e8dfe549a886bf66cab86a2e715055e143a8a286 Mon Sep 17 00:00:00 2001 From: Frank Yung-Fong Tang <41213225+FrankYFTang@users.noreply.github.com> Date: Sat, 25 Apr 2020 01:50:01 -0700 Subject: [PATCH] Correct the expectation of zh-Hant It is incorrect to expect the minimize result of "zh-Hant" to be "zh-TW". It should be "zh-Hant". Why? first, what we have in input for zh-Hant lang = zh region = [none] script = Hant Now, look at the AddLikelySubtags algorithm in http://www.unicode.org/reports/tr35/#Likely_Subtags --- .../removing-likely-subtags-first-adds-likely-subtags.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 2b2368b383..d0408a213b 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 @@ -34,7 +34,7 @@ var testDataMinimal = { // https://unicode-org.atlassian.net/browse/ICU-12345 "und-CW": "pap-CW", "und-US": "en", - "zh-Hant": "zh-TW", + "zh-Hant": "zh-Hant", "zh-Hani": "zh-Hani", };