1
Fork 0
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:
Simon Wanner 2023-06-14 15:24:30 +02:00 committed by Tim Flynn
parent 299d35aadc
commit cfd0a60863
3 changed files with 132 additions and 0 deletions

View file

@ -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
}
}