zig/std/special/test_runner.zig

14 lines
337 B
Zig
Raw Normal View History

const io = @import("std").io;
const builtin = @import("builtin");
const test_fn_list = builtin.__zig_test_fn_slice;
2017-04-04 05:17:24 +01:00
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();
2017-02-05 21:09:33 +00:00
%%io.stderr.printf("OK\n");
}
}