2016-02-28 05:06:46 +00:00
|
|
|
const io = @import("std").io;
|
2017-05-01 18:12:38 +01:00
|
|
|
const builtin = @import("builtin");
|
|
|
|
const test_fn_list = builtin.__zig_test_fn_slice;
|
2016-02-04 01:02:01 +00:00
|
|
|
|
2017-04-04 05:17:24 +01:00
|
|
|
pub fn main() -> %void {
|
2017-04-27 21:15:41 +01:00
|
|
|
for (test_fn_list) |test_fn, i| {
|
|
|
|
%%io.stderr.printf("Test {}/{} {}...", i + 1, test_fn_list.len, test_fn.name);
|
2016-02-04 01:02:01 +00:00
|
|
|
|
2017-04-27 21:15:41 +01:00
|
|
|
test_fn.func();
|
2016-02-04 01:02:01 +00:00
|
|
|
|
2017-02-05 21:09:33 +00:00
|
|
|
%%io.stderr.printf("OK\n");
|
2016-02-04 01:02:01 +00:00
|
|
|
}
|
|
|
|
}
|