diff options
author | 2021-12-30 21:12:32 -0800 | |
---|---|---|
committer | 2021-12-30 21:12:32 -0800 | |
commit | e75c711c68896f5952793601f156c921c814caab (patch) | |
tree | f3b30e2281c7231d480bb84503d17b2370866ff9 /src/test/tester.zig | |
parent | 8d031f13c0e04629d431176e211a31224b7618c0 (diff) | |
download | bun-e75c711c68896f5952793601f156c921c814caab.tar.gz bun-e75c711c68896f5952793601f156c921c814caab.tar.zst bun-e75c711c68896f5952793601f156c921c814caab.zip |
Upgrade to latest Zig, remove dependency on patched version of Zig (#96)
* Prepare to upgrade zig
* zig fmt
* AllocGate
* Update data_url.zig
* wip
* few files
* just headers now?
* I think everything works?
* Update mimalloc
* Update hash_map.zig
* Perf improvements to compensate for Allocgate
* Bump
* :camera:
* Update bun.lockb
* Less branching
* [js parser] Slightly reduce memory usage
* Update js_parser.zig
* WIP remove unused
* [JS parser] WIP support for `with` keyword
* Remove more dead code
* Fix all the build errors!
* cleanup
* Move `network_thread` up
* Bump peechy
* Update README.md
Diffstat (limited to 'src/test/tester.zig')
-rw-r--r-- | src/test/tester.zig | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/test/tester.zig b/src/test/tester.zig index ac5ba57e5..84be7ddbb 100644 --- a/src/test/tester.zig +++ b/src/test/tester.zig @@ -12,9 +12,9 @@ const RESET = "\x1b[0m"; pub const Tester = struct { pass: std.ArrayList(Expectation), fail: std.ArrayList(Expectation), - allocator: *std.mem.Allocator, + allocator: std.mem.Allocator, - pub fn t(allocator: *std.mem.Allocator) Tester { + pub fn t(allocator: std.mem.Allocator) Tester { return Tester{ .allocator = allocator, .pass = std.ArrayList(Expectation).init(allocator), @@ -156,7 +156,7 @@ pub const Tester = struct { RESET, }) catch unreachable; std.fmt.format(stderr.writer(), RESET, .{}) catch unreachable; - std.testing.expect(false) catch std.debug.panic("Test failure", .{}); + std.testing.expect(false) catch std.debug.panic("Test failure in {s}: {s}:{d}:{d}", .{ src.fn_name, src.file, src.line, src.column }); }, } } |