Add more tests for small strings.

This commit is contained in:
Madeorsk 2025-01-08 23:35:25 +01:00
parent a269c141c8
commit d02dc51456
Signed by: Madeorsk
GPG key ID: 677E51CA765BB79F

View file

@ -70,6 +70,8 @@ fn testAnyascii(expectedAscii: []const u8, utf8str: []const u8) !void {
test utf8ToAscii {
// These examples are taken from anyascii examples, see https://github.com/anyascii/anyascii/tree/master#examples
try testUtf8ToAscii("a ", "à ");
try testUtf8ToAscii("a", "à");
try testUtf8ToAscii("Rene Francois Lacote", "René François Lacôte");
try testUtf8ToAscii("Blosse", "Blöße");
try testUtf8ToAscii("Tran Hung Dao", "Trần Hưng Đạo");