diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-08-31 10:05:00 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-09-01 14:14:47 +0100 |
commit | 72f49e42b49536dca912202aa7e779ea10133c90 (patch) | |
tree | b641d5f0141535f0abd6cd0224f82dcf298bcdd0 /Tests | |
parent | 9ae7ac4c87d1cc069c558883bd5df8b35cd83b22 (diff) | |
download | serenity-72f49e42b49536dca912202aa7e779ea10133c90.zip |
LibUnicode: Perform complex Unicode locale alias substitution
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibUnicode/TestUnicodeLocale.cpp | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/Tests/LibUnicode/TestUnicodeLocale.cpp b/Tests/LibUnicode/TestUnicodeLocale.cpp index a536118de2..e0ec45d7fb 100644 --- a/Tests/LibUnicode/TestUnicodeLocale.cpp +++ b/Tests/LibUnicode/TestUnicodeLocale.cpp @@ -410,4 +410,20 @@ TEST_CASE(canonicalize_unicode_locale_id) test("EN-U-RG-CN12"sv, "en-u-rg-cntj"sv); test("en-u-aa-cn11"sv, "en-u-aa-cn11"sv); test("EN-U-AA-CN11"sv, "en-u-aa-cn11"sv); + + // Complex aliases. + test("en-lojban"sv, "en"sv); + test("EN-LOJBAN"sv, "en"sv); + test("art-lojban"sv, "jbo"sv); + test("ART-LOJBAN"sv, "jbo"sv); + test("cel-gaulish"sv, "xtg"sv); + test("CEL-GAULISH"sv, "xtg"sv); + test("zh-guoyu"sv, "zh"sv); + test("ZH-GUOYU"sv, "zh"sv); + test("zh-hakka"sv, "hak"sv); + test("ZH-HAKKA"sv, "hak"sv); + test("zh-xiang"sv, "hsn"sv); + test("ZH-XIANG"sv, "hsn"sv); + test("ja-latn-hepburn-heploc"sv, "ja-Latn-alalc97"sv); + test("JA-LATN-HEPBURN-HEPLOC"sv, "ja-Latn-alalc97"sv); } |