diff options
Diffstat (limited to 'src/Normalize.zig')
| -rw-r--r-- | src/Normalize.zig | 16 |
1 files changed, 15 insertions, 1 deletions
diff --git a/src/Normalize.zig b/src/Normalize.zig index 4f014cf..d8c867d 100644 --- a/src/Normalize.zig +++ b/src/Normalize.zig | |||
| @@ -632,6 +632,21 @@ test "isLatin1Only" { | |||
| 632 | try testing.expect(!isLatin1Only(not_latin1_only)); | 632 | try testing.expect(!isLatin1Only(not_latin1_only)); |
| 633 | } | 633 | } |
| 634 | 634 | ||
| 635 | // NOTE: These tests take way waaaaay too long to run, because | ||
| 636 | // the amount of allocations in a couple of the inflators is | ||
| 637 | // completely excessive and is also costing memory for metadata. | ||
| 638 | // I'm leaving this here for when I fix that. | ||
| 639 | // | ||
| 640 | // fn testAllocations(allocator: Allocator) !void { | ||
| 641 | // const norm = try Normalize.init(allocator); | ||
| 642 | // norm.deinit(allocator); | ||
| 643 | // } | ||
| 644 | // | ||
| 645 | // test "allocation failures" { | ||
| 646 | // if (true) return error.SkipZigTest; | ||
| 647 | // try testing.checkAllAllocationFailures(testing.allocator, testAllocations, .{}); | ||
| 648 | // } | ||
| 649 | |||
| 635 | const std = @import("std"); | 650 | const std = @import("std"); |
| 636 | const debug = std.debug; | 651 | const debug = std.debug; |
| 637 | const assert = debug.assert; | 652 | const assert = debug.assert; |
| @@ -649,6 +664,5 @@ const CodePointIterator = @import("code_point").Iterator; | |||
| 649 | const CanonData = @import("CanonData"); | 664 | const CanonData = @import("CanonData"); |
| 650 | const CccData = @import("CombiningData"); | 665 | const CccData = @import("CombiningData"); |
| 651 | const CompatData = @import("CompatData"); | 666 | const CompatData = @import("CompatData"); |
| 652 | const FoldData = @import("FoldData"); | ||
| 653 | const HangulData = @import("HangulData"); | 667 | const HangulData = @import("HangulData"); |
| 654 | const NormPropsData = @import("NormPropsData"); | 668 | const NormPropsData = @import("NormPropsData"); |