diff options
Diffstat (limited to 'src/parser.zig')
| -rw-r--r-- | src/parser.zig | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/parser.zig b/src/parser.zig index 07722d8..dcbf236 100644 --- a/src/parser.zig +++ b/src/parser.zig @@ -62,9 +62,7 @@ fn doTest(alloc: Allocator, t: []const u8, v: []const u8) !void { } test "parse multilines" { - var arena = std.heap.DebugAllocator(.{}).init; - defer if (arena.deinit() == .leak) std.debug.print("leaking!\n", .{}); - const alloc = arena.allocator(); + const alloc = std.testing.allocator; try doTest(alloc, \\hello |
