From 10048b0d31d0db923ae39c6bbd67139ed6252f6f Mon Sep 17 00:00:00 2001 From: Sam Atman Date: Wed, 30 Apr 2025 20:30:39 -0400 Subject: Allocation Failure Tests These turned up an excessive amount of allocations in CanonData and CompatData, which have been reduced to two through the somewhat squirrely use of 'magic numbers'. There are now allocation tests for every allocated structure in the library, and they run to completion in a reasonable amount of time. So, that's nice. --- src/unicode_tests.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/unicode_tests.zig') diff --git a/src/unicode_tests.zig b/src/unicode_tests.zig index 8b9069a..1c4b888 100644 --- a/src/unicode_tests.zig +++ b/src/unicode_tests.zig @@ -208,7 +208,7 @@ test "Segmentation GraphemeIterator" { // std.debug.print("\nline {}: {s}\n", .{ line_no, all_bytes.items }); var iter = data.iterator(all_bytes.items); - // Chaeck. + // Check. for (want.items) |want_gc| { const got_gc = (iter.next()).?; try std.testing.expectEqualStrings( -- cgit v1.2.3