diff options
author | Timothy Flynn <trflynn89@pm.me> | 2021-08-28 13:26:57 -0400 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2021-08-30 19:42:40 +0100 |
commit | f897c2edb3deac5e442476291ae71fe73d82bfb8 (patch) | |
tree | 6afd711ce301973c52398e90f2d194b3f55c0350 /Tests | |
parent | 6f0cb52dc4867ff1409bdc13b5da76ecf7b91ced (diff) | |
download | serenity-f897c2edb3deac5e442476291ae71fe73d82bfb8.zip |
LibUnicode: Canonicalize locale private use extensions
Diffstat (limited to 'Tests')
-rw-r--r-- | Tests/LibUnicode/TestUnicodeLocale.cpp | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Tests/LibUnicode/TestUnicodeLocale.cpp b/Tests/LibUnicode/TestUnicodeLocale.cpp index af28c7cc8f..5a14288f1a 100644 --- a/Tests/LibUnicode/TestUnicodeLocale.cpp +++ b/Tests/LibUnicode/TestUnicodeLocale.cpp @@ -323,8 +323,15 @@ TEST_CASE(canonicalize_unicode_locale_id) test("en-z-bbb-0-aaa"sv, "en-0-aaa-z-bbb"sv); test("EN-Z-BBB-0-AAA"sv, "en-0-aaa-z-bbb"sv); + test("en-x-aa"sv, "en-x-aa"sv); + test("EN-X-AA"sv, "en-x-aa"sv); + test("en-x-bbb-aa"sv, "en-x-bbb-aa"sv); + test("EN-X-BBB-AA"sv, "en-x-bbb-aa"sv); + test("en-u-aa-t-en"sv, "en-t-en-u-aa"sv); test("EN-U-AA-T-EN"sv, "en-t-en-u-aa"sv); test("en-z-bbb-u-aa-t-en-0-aaa"sv, "en-0-aaa-t-en-u-aa-z-bbb"sv); test("EN-Z-BBB-U-AA-T-EN-0-AAA"sv, "en-0-aaa-t-en-u-aa-z-bbb"sv); + test("en-z-bbb-u-aa-t-en-0-aaa-x-ccc"sv, "en-0-aaa-t-en-u-aa-z-bbb-x-ccc"sv); + test("EN-Z-BBB-U-AA-T-EN-0-AAA-X-CCC"sv, "en-0-aaa-t-en-u-aa-z-bbb-x-ccc"sv); } |