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/title.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/title.zig') diff --git a/src/title.zig b/src/title.zig index c7845c6..dc1113a 100644 --- a/src/title.zig +++ b/src/title.zig @@ -32,9 +32,7 @@ pub fn parse(alloc: Allocator, l: *Lexer) Error!Element { } test "parse title" { - 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, "# hey", "

hey

"); try doTest(parse, alloc, "## hey", "

hey

"); -- cgit v1.2.3