| author | |
| committer | |
| log | 66d6a68d1de1ae2806516daba35d3b2275137bc3 |
| tree | 0d6c6c907a2a2839e6d2f953c5e4f9dc8443c590 |
| parent | 29e97844c71c8d18170432819c4e7d6deb975c9f |
2 files changed, 8 insertions(+), 2 deletions(-)
generate.ts+4-1| ... | ... | @@ -38,7 +38,10 @@ const E = stringEscape; |
| 38 | 38 | w.write(` |
| 39 | 39 | pub fn parseFail(input: []const u8, base: ?[]const u8) !void { |
| 40 | 40 | const allocator = std.testing.allocator; |
| 41 | _ = url.URL.parse(allocator, input, base) catch return; | |
| 41 | _ = url.URL.parse(allocator, input, base) catch |err| switch (err) { | |
| 42 | error.SkipZigTest => |e| return e, | |
| 43 | else => return, | |
| 44 | }; | |
| 42 | 45 | return error.FailZigTest; |
| 43 | 46 | } |
| 44 | 47 |
test.generated.zig+4-1| ... | ... | @@ -6,7 +6,10 @@ const expect = @import("expect").expect; |
| 6 | 6 | |
| 7 | 7 | pub fn parseFail(input: []const u8, base: ?[]const u8) !void { |
| 8 | 8 | const allocator = std.testing.allocator; |
| 9 | _ = url.URL.parse(allocator, input, base) catch return; | |
| 9 | _ = url.URL.parse(allocator, input, base) catch |err| switch (err) { | |
| 10 | error.SkipZigTest => |e| return e, | |
| 11 | else => return, | |
| 12 | }; | |
| 10 | 13 | return error.FailZigTest; |
| 11 | 14 | } |
| 12 | 15 |