summaryrefslogtreecommitdiff
path: root/Tests
diff options
context:
space:
mode:
authorTimothy Flynn <trflynn89@pm.me>2021-08-31 11:12:03 -0400
committerLinus Groh <mail@linusgroh.de>2021-09-01 14:14:47 +0100
commit335f985b3194461bfed18ee64e5e775513b47b48 (patch)
tree080cd6d3cd842328745df0b5096f35e403a21a4f /Tests
parent2d901448883167e7ccaced960911c103d55544e3 (diff)
downloadserenity-335f985b3194461bfed18ee64e5e775513b47b48.zip
LibUnicode: Canonicalize the subtag "imperial" to "uksystem"
Diffstat (limited to 'Tests')
-rw-r--r--Tests/LibUnicode/TestUnicodeLocale.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/Tests/LibUnicode/TestUnicodeLocale.cpp b/Tests/LibUnicode/TestUnicodeLocale.cpp
index 03f19695c0..85bf18dac2 100644
--- a/Tests/LibUnicode/TestUnicodeLocale.cpp
+++ b/Tests/LibUnicode/TestUnicodeLocale.cpp
@@ -312,6 +312,10 @@ TEST_CASE(canonicalize_unicode_locale_id)
test("EN-U-KS-PRIMARY"sv, "en-u-ks-level1"sv);
test("en-u-ka-primary"sv, "en-u-ka-primary"sv);
test("EN-U-KA-PRIMARY"sv, "en-u-ka-primary"sv);
+ test("en-u-ms-imperial"sv, "en-u-ms-uksystem"sv);
+ test("EN-U-MS-IMPERIAL"sv, "en-u-ms-uksystem"sv);
+ test("en-u-ma-imperial"sv, "en-u-ma-imperial"sv);
+ test("EN-U-MA-IMPERIAL"sv, "en-u-ma-imperial"sv);
test("en-t-en"sv, "en-t-en"sv);
test("EN-T-EN"sv, "en-t-en"sv);
@@ -333,6 +337,8 @@ TEST_CASE(canonicalize_unicode_locale_id)
test("EN-T-K1-NAMES"sv, "en-t-k1-names"sv);
test("en-t-k1-primary"sv, "en-t-k1-primary"sv);
test("EN-T-K1-PRIMARY"sv, "en-t-k1-primary"sv);
+ test("en-t-k1-imperial"sv, "en-t-k1-imperial"sv);
+ test("EN-T-K1-IMPERIAL"sv, "en-t-k1-imperial"sv);
test("en-0-aaa"sv, "en-0-aaa"sv);
test("EN-0-AAA"sv, "en-0-aaa"sv);