aboutsummaryrefslogtreecommitdiff
path: root/src/title.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/title.zig')
-rw-r--r--src/title.zig4
1 files changed, 1 insertions, 3 deletions
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", "<h1>hey</h1>");
try doTest(parse, alloc, "## hey", "<h2>hey</h2>");