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/dom/html.zig | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/dom/html.zig') diff --git a/src/dom/html.zig b/src/dom/html.zig index a3178f2..1734c60 100644 --- a/src/dom/html.zig +++ b/src/dom/html.zig @@ -34,9 +34,7 @@ fn doTest(alloc: std.mem.Allocator, el: []const u8, exp: []const u8) !void { } test "escaping html" { - 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 world", "hello world"); try doTest(alloc, "hello&world", "hello&world"); -- cgit v1.2.3