diff options
| author | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-27 20:49:13 +0200 |
|---|---|---|
| committer | Anhgelus Morhtuuzh <william@herges.fr> | 2026-04-27 20:49:13 +0200 |
| commit | e154408e8ddeaee83242002f4c7af68b29d3a677 (patch) | |
| tree | d0caadc01e77aa15edb204b1529fac168775329a /src/testing.zig | |
| parent | 3b0e9424a66058da82d11d432da886ec7b6ce7eb (diff) | |
feat(): support callout
Diffstat (limited to 'src/testing.zig')
| -rw-r--r-- | src/testing.zig | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/testing.zig b/src/testing.zig index bf0690e..cfc3505 100644 --- a/src/testing.zig +++ b/src/testing.zig @@ -24,6 +24,11 @@ pub fn doError(comptime parse: fn (Allocator, *Lexer) parser.Error!Element, pare defer arena.deinit(); var l = try Lexer.init(t); - _ = parse(arena.allocator(), &l) catch |e| return std.testing.expect(err == e); - return std.testing.expect(false); + _ = parse(arena.allocator(), &l) catch |e| { + return std.testing.expect(err == e) catch |v| { + std.debug.print("{}\n", .{v}); + return e; + }; + }; + return error.ExpectingError; } |
