From d02dc51456a0864d934cddbd205bd79c7c61f65c Mon Sep 17 00:00:00 2001 From: Madeorsk Date: Wed, 8 Jan 2025 23:35:25 +0100 Subject: [PATCH] Add more tests for small strings. --- src/lib.zig | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/lib.zig b/src/lib.zig index a4d4b81..4fa2db6 100644 --- a/src/lib.zig +++ b/src/lib.zig @@ -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");