2017-10-31 08:47:55 +00:00
|
|
|
const std = @import("std");
|
|
|
|
const io = std.io;
|
2017-05-01 18:12:38 +01:00
|
|
|
const builtin = @import("builtin");
|
|
|
|
const test_fn_list = builtin.__zig_test_fn_slice;
|
2017-10-31 08:47:55 +00:00
|
|
|
const warn = std.debug.warn;
|
2016-02-04 01:02:01 +00:00
|
|
|
|
2018-01-31 06:51:15 +00:00
|
|
|
pub fn main() !void {
|
2017-04-27 21:15:41 +01:00
|
|
|
for (test_fn_list) |test_fn, i| {
|
2017-10-31 08:47:55 +00:00
|
|
|
warn("Test {}/{} {}...", i + 1, test_fn_list.len, test_fn.name);
|
2016-02-04 01:02:01 +00:00
|
|
|
|
2018-01-15 05:01:02 +00:00
|
|
|
try test_fn.func();
|
2016-02-04 01:02:01 +00:00
|
|
|
|
2017-10-31 08:47:55 +00:00
|
|
|
warn("OK\n");
|
2016-02-04 01:02:01 +00:00
|
|
|
}
|
|
|
|
}
|