mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibUnicode: Canonicalize the subtag "primary" and "tertiary" to "levelN"
This commit is contained in:
parent
409f39b336
commit
2d90144888
Notes:
sideshowbarker
2024-07-18 04:57:31 +09:00
Author: https://github.com/trflynn89
Commit: 2d90144888
Pull-request: https://github.com/SerenityOS/serenity/pull/9705
Reviewed-by: https://github.com/linusg ✅
2 changed files with 16 additions and 2 deletions
|
@ -308,6 +308,10 @@ TEST_CASE(canonicalize_unicode_locale_id)
|
|||
test("EN-U-KA-YES"sv, "en-u-ka-yes"sv);
|
||||
test("en-u-1k-names"sv, "en-u-1k-names"sv);
|
||||
test("EN-U-1K-NAMES"sv, "en-u-1k-names"sv);
|
||||
test("en-u-ks-primary"sv, "en-u-ks-level1"sv);
|
||||
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-t-en"sv, "en-t-en"sv);
|
||||
test("EN-T-EN"sv, "en-t-en"sv);
|
||||
|
@ -327,6 +331,8 @@ TEST_CASE(canonicalize_unicode_locale_id)
|
|||
test("EN-T-M0-NAMES"sv, "en-t-m0-prprname"sv);
|
||||
test("en-t-k1-names"sv, "en-t-k1-names"sv);
|
||||
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-0-aaa"sv, "en-0-aaa"sv);
|
||||
test("EN-0-AAA"sv, "en-0-aaa"sv);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue