diff options
Diffstat (limited to 'src/unicode_tests.zig')
| -rw-r--r-- | src/unicode_tests.zig | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/unicode_tests.zig b/src/unicode_tests.zig index 875c5f0..e2a5a96 100644 --- a/src/unicode_tests.zig +++ b/src/unicode_tests.zig | |||
| @@ -449,7 +449,8 @@ const IterRead = struct { | |||
| 449 | 449 | ||
| 450 | pub fn next(iter: *IterRead) anyerror![]const u8 { | 450 | pub fn next(iter: *IterRead) anyerror![]const u8 { |
| 451 | iter.line += 1; | 451 | iter.line += 1; |
| 452 | const this_line = try iter.read.takeDelimiterExclusive('\n'); | 452 | const took = try iter.read.takeDelimiterInclusive('\n'); |
| 453 | const this_line = std.mem.trimRight(u8, took, "\n"); | ||
| 453 | if (this_line.len == 0 or this_line[0] == '@' or this_line[0] == '#') { | 454 | if (this_line.len == 0 or this_line[0] == '@' or this_line[0] == '#') { |
| 454 | // comment, next line | 455 | // comment, next line |
| 455 | return iter.next(); | 456 | return iter.next(); |