summaryrefslogtreecommitdiff
path: root/src/unicode_tests.zig
diff options
context:
space:
mode:
authorGravatar Sam Atman2025-05-12 18:10:02 -0400
committerGravatar Sam Atman2025-05-15 15:31:16 -0400
commita7f6990a8d433c6c8d34892a2126e94cdb31541f (patch)
tree427d465cbce19c816a375b34f5bb04ce4599a8d6 /src/unicode_tests.zig
parentBegin conformance test (diff)
downloadzg-a7f6990a8d433c6c8d34892a2126e94cdb31541f.tar.gz
zg-a7f6990a8d433c6c8d34892a2126e94cdb31541f.tar.xz
zg-a7f6990a8d433c6c8d34892a2126e94cdb31541f.zip
Rewrite, passes WordBreakTest
After fixing a bug in Runicode which was fenceposting codepoints off the end of ranges. As one does.
Diffstat (limited to 'src/unicode_tests.zig')
-rw-r--r--src/unicode_tests.zig3
1 files changed, 1 insertions, 2 deletions
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" {
228 // Check. 228 // Check.
229 for (want.items, 1..) |want_word, i| { 229 for (want.items, 1..) |want_word, i| {
230 const got_word = (iter.next()).?; 230 const got_word = (iter.next()).?;
231 std.testing.expectEqualSlices( 231 std.testing.expectEqualStrings(
232 u8,
233 want_word.bytes(all_bytes.items), 232 want_word.bytes(all_bytes.items),
234 got_word.bytes(all_bytes.items), 233 got_word.bytes(all_bytes.items),
235 ) catch |err| { 234 ) catch |err| {