zig/std/special/test_runner.zig
2017-05-01 13:12:38 -04:00

14 lines
337 B
Zig

const io = @import("std").io;
const builtin = @import("builtin");
const test_fn_list = builtin.__zig_test_fn_slice;
pub fn main() -> %void {
for (test_fn_list) |test_fn, i| {
%%io.stderr.printf("Test {}/{} {}...", i + 1, test_fn_list.len, test_fn.name);
test_fn.func();
%%io.stderr.printf("OK\n");
}
}