mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-10 10:01:13 +09:00
LibUnicode: Add Punycode::encode
This commit is contained in:
parent
299d35aadc
commit
cfd0a60863
Notes:
sideshowbarker
2024-07-16 22:16:50 +09:00
Author: https://github.com/skyrising
Commit: cfd0a60863
Pull-request: https://github.com/SerenityOS/serenity/pull/19414
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/nico
Reviewed-by: https://github.com/shannonbooth
Reviewed-by: https://github.com/trflynn89
3 changed files with 132 additions and 0 deletions
|
@ -47,4 +47,11 @@ TEST_CASE(decode)
|
|||
EXPECT(decode("Nåväl hej vänner"sv).is_error());
|
||||
}
|
||||
|
||||
TEST_CASE(encode)
|
||||
{
|
||||
#define CASE(a, b) EXPECT_EQ(TRY_OR_FAIL(encode(a)), b);
|
||||
ENUMERATE_TEST_CASES
|
||||
#undef CASE
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue