From 22ce4f7a80fb6692da3a675e3a652b8f305d157a Mon Sep 17 00:00:00 2001 From: Anhgelus Morhtuuzh Date: Sat, 25 Apr 2026 13:10:58 +0200 Subject: perf(tests): use testing allocator instead of debug allocator --- src/paragraph.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/paragraph.zig') diff --git a/src/paragraph.zig b/src/paragraph.zig index 0e0f188..92c3792 100644 --- a/src/paragraph.zig +++ b/src/paragraph.zig @@ -55,9 +55,7 @@ pub fn parseLine(alloc: Allocator, l: *Lexer) Error!Element { } test "parse paragraphs" { - 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(parse, alloc, "hello world", "

hello world

"); try doTest(parse, alloc, "*hello* world", "

hello world

"); -- cgit v1.2.3