diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-25 16:56:45 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-25 16:56:45 +0200 |
| commit | a3e7c462dadadc6986d93f6f0203ca7a02863ef8 (patch) | |
| tree | 8be2002817241138554fc3f00440cbdb9e0fa9e1 /src/testing.zig | |
| parent | 22ce4f7a80fb6692da3a675e3a652b8f305d157a (diff) | |
refactor(ast): separate ast and exec
Diffstat (limited to 'src/testing.zig')
| -rw-r--r-- | src/testing.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/testing.zig b/src/testing.zig index 8d96808..0911438 100644 --- a/src/testing.zig +++ b/src/testing.zig @@ -1,14 +1,14 @@ const std = @import("std"); const Allocator = std.mem.Allocator; const Lexer = @import("lexer/Lexer.zig"); -const Element = @import("dom/Element.zig"); +const Element = @import("Element.zig"); const parser = @import("parser.zig"); pub fn do(comptime parse: fn (Allocator, *Lexer) parser.Error!Element, alloc: Allocator, t: []const u8, v: []const u8) !void { var l = try Lexer.init(t); var p = try parse(alloc, &l); - defer p.deinit(); - const g = try p.render(alloc); + defer p.deinit(alloc); + const g = try p.renderHTML(alloc); defer alloc.free(g); std.testing.expect(std.mem.eql(u8, g, v)) catch |err| { std.debug.print("{s}\n", .{g}); |
