This commit is contained in:
2026-04-14 21:31:44 +12:00
commit 8be321dee1
16 changed files with 7065 additions and 0 deletions

16
tests/test_runner.zig Normal file
View File

@@ -0,0 +1,16 @@
const std = @import("std");
const builtin = @import("builtin");
pub fn main() !void {
var stdout_buffer: [1024]u8 = undefined;
var stdout_writer = std.fs.File.stdout().writer(&stdout_buffer);
const stdout = &stdout_writer.interface;
for (builtin.test_functions) |t| {
t.func() catch |err| {
try stdout.print("{s} fail: {}\n", .{ t.name, err });
continue;
};
try stdout.print("{s} passed\n", .{t.name});
}
try stdout.flush(); // Don't forget to flush!
}