mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:58:11 +00:00
LibUnicode: Add Punycode::encode
This commit is contained in:
parent
299d35aadc
commit
cfd0a60863
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