diff options
| author | 2025-04-30 12:58:26 -0400 | |
|---|---|---|
| committer | 2025-04-30 13:01:37 -0400 | |
| commit | 3c2c30bfbe861c6c48acd8d7507886787197a788 (patch) | |
| tree | 875ba35c1954b201207452b18a189ebd70c0b596 /src/unicode_tests.zig | |
| parent | grapheme now Graphemes, Data files gone (diff) | |
| download | zg-3c2c30bfbe861c6c48acd8d7507886787197a788.tar.gz zg-3c2c30bfbe861c6c48acd8d7507886787197a788.tar.xz zg-3c2c30bfbe861c6c48acd8d7507886787197a788.zip | |
Merge NormData with Normalize
Diffstat (limited to 'src/unicode_tests.zig')
| -rw-r--r-- | src/unicode_tests.zig | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/unicode_tests.zig b/src/unicode_tests.zig index 3cb5df5..8b9069a 100644 --- a/src/unicode_tests.zig +++ b/src/unicode_tests.zig | |||
| @@ -43,9 +43,8 @@ test "Unicode normalization tests" { | |||
| 43 | defer arena.deinit(); | 43 | defer arena.deinit(); |
| 44 | var allocator = arena.allocator(); | 44 | var allocator = arena.allocator(); |
| 45 | 45 | ||
| 46 | var norm_data: Normalize.NormData = undefined; | 46 | const n = try Normalize.init(allocator); |
| 47 | try Normalize.NormData.init(&norm_data, allocator); | 47 | defer n.deinit(allocator); |
| 48 | const n = Normalize{ .norm_data = &norm_data }; | ||
| 49 | 48 | ||
| 50 | var file = try fs.cwd().openFile("data/unicode/NormalizationTest.txt", .{}); | 49 | var file = try fs.cwd().openFile("data/unicode/NormalizationTest.txt", .{}); |
| 51 | defer file.close(); | 50 | defer file.close(); |