mirror of
https://github.com/ziglang/zig.git
synced 2024-11-27 15:42:49 +00:00
17b935325e
See #226 Closes #220
14 lines
337 B
Zig
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");
|
|
}
|
|
}
|