diff options
| author | 2025-05-11 17:26:50 -0400 | |
|---|---|---|
| committer | 2025-05-15 15:31:15 -0400 | |
| commit | 470e896483300d099c7650f9cd8a13e236c63864 (patch) | |
| tree | 84b833525430b5603698b3096121a188b3bfe409 /src/CaseFolding.zig | |
| parent | Add WordBreakPropertyData (diff) | |
| download | zg-470e896483300d099c7650f9cd8a13e236c63864.tar.gz zg-470e896483300d099c7650f9cd8a13e236c63864.tar.xz zg-470e896483300d099c7650f9cd8a13e236c63864.zip | |
Refactor in unicode_tests
The comments in WordBreak and SentenceBreak tests get really long, the
provided buffer would be inadequate. So this just provides a sub-
iterator which will strip comments and comment lines, while keeping an
eye on line numbers for any debugging.
Diffstat (limited to 'src/CaseFolding.zig')
| -rw-r--r-- | src/CaseFolding.zig | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/CaseFolding.zig b/src/CaseFolding.zig index f63b860..ff41b3e 100644 --- a/src/CaseFolding.zig +++ b/src/CaseFolding.zig | |||
| @@ -300,13 +300,13 @@ fn testAllocations(allocator: Allocator) !void { | |||
| 300 | { | 300 | { |
| 301 | const normalize = try Normalize.init(allocator); | 301 | const normalize = try Normalize.init(allocator); |
| 302 | defer normalize.deinit(allocator); | 302 | defer normalize.deinit(allocator); |
| 303 | const caser1 = try CaseFolding.initWithNormalize(allocator, normalize); | 303 | const caser = try CaseFolding.initWithNormalize(allocator, normalize); |
| 304 | defer caser1.deinit(allocator); | 304 | defer caser.deinit(allocator); |
| 305 | } | 305 | } |
| 306 | // With normalize owned | 306 | // With normalize owned |
| 307 | { | 307 | { |
| 308 | const caser2 = try CaseFolding.init(allocator); | 308 | const caser = try CaseFolding.init(allocator); |
| 309 | defer caser2.deinit(allocator); | 309 | defer caser.deinit(allocator); |
| 310 | } | 310 | } |
| 311 | } | 311 | } |
| 312 | 312 | ||