aboutsummaryrefslogtreecommitdiff
path: root/src/paragraph.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/paragraph.zig')
-rw-r--r--src/paragraph.zig4
1 files changed, 1 insertions, 3 deletions
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", "<p>hello world</p>");
try doTest(parse, alloc, "*hello* world", "<p><b>hello</b> world</p>");