This commit is contained in:
2026-08-31 08:49:23 +12:00
parent 8be321dee1
commit 91beeffd6d
8 changed files with 6194 additions and 74 deletions

View File

@@ -1,10 +1,15 @@
const std = @import("std");
const Io = std.Io;
const builtin = @import("builtin");
pub fn main() !void {
pub fn main(init: std.process.Init) !void {
const io = init.io;
var stdout_buffer: [1024]u8 = undefined;
var stdout_writer = std.fs.File.stdout().writer(&stdout_buffer);
const stdout = &stdout_writer.interface;
var stdout_file_writer: Io.File.Writer = .init(.stdout(), io, &stdout_buffer);
const stdout = &stdout_file_writer.interface;
for (builtin.test_functions) |t| {
t.func() catch |err| {
try stdout.print("{s} fail: {}\n", .{ t.name, err });