From a7f6990a8d433c6c8d34892a2126e94cdb31541f Mon Sep 17 00:00:00 2001 From: Sam Atman Date: Mon, 12 May 2025 18:10:02 -0400 Subject: Rewrite, passes WordBreakTest After fixing a bug in Runicode which was fenceposting codepoints off the end of ranges. As one does. --- src/unicode_tests.zig | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/unicode_tests.zig') diff --git a/src/unicode_tests.zig b/src/unicode_tests.zig index 7ce2b4e..59f0c6f 100644 --- a/src/unicode_tests.zig +++ b/src/unicode_tests.zig @@ -228,8 +228,7 @@ test "Segmentation Word Iterator" { // Check. for (want.items, 1..) |want_word, i| { const got_word = (iter.next()).?; - std.testing.expectEqualSlices( - u8, + std.testing.expectEqualStrings( want_word.bytes(all_bytes.items), got_word.bytes(all_bytes.items), ) catch |err| { -- cgit v1.2.3