aboutsummaryrefslogtreecommitdiff
path: root/src/link.zig
diff options
context:
space:
mode:
authorAnhgelus Morhtuuzh <william@herges.fr>2026-04-25 13:10:58 +0200
committerAnhgelus Morhtuuzh <william@herges.fr>2026-04-25 13:10:58 +0200
commit22ce4f7a80fb6692da3a675e3a652b8f305d157a (patch)
tree5e090186c582942c97144392372f470fe4beec4b /src/link.zig
parent15b59f86316f823128be2c66044ee188f9f51394 (diff)
perf(tests): use testing allocator instead of debug allocator
Diffstat (limited to 'src/link.zig')
-rw-r--r--src/link.zig4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/link.zig b/src/link.zig
index eb13447..6da585f 100644
--- a/src/link.zig
+++ b/src/link.zig
@@ -62,9 +62,7 @@ pub fn parseData(alloc: Allocator, l: *Lexer) Error!Data {
}
test "parse links" {
- 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, "[](bar)", "<a href=\"bar\">bar</a>");
try doTest(parse, alloc, "[foo](bar)", "<a href=\"bar\">foo</a>");