mirror of
https://github.com/lightpanda-io/browser.git
synced 2025-10-29 15:13:28 +00:00
Merge pull request #151 from lightpanda-io/fix-run-test
test: run classic test func
This commit is contained in:
@@ -1,4 +1,5 @@
|
|||||||
const std = @import("std");
|
const std = @import("std");
|
||||||
|
const builtin = @import("builtin");
|
||||||
|
|
||||||
const jsruntime = @import("jsruntime");
|
const jsruntime = @import("jsruntime");
|
||||||
const generate = @import("generate.zig");
|
const generate = @import("generate.zig");
|
||||||
@@ -80,8 +81,14 @@ fn testsAllExecFn(
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub fn main() !void {
|
pub fn main() !void {
|
||||||
std.debug.print("\n \n", .{});
|
std.debug.print("\n", .{});
|
||||||
|
for (builtin.test_functions) |test_fn| {
|
||||||
|
try test_fn.func();
|
||||||
|
std.debug.print("{s}\tOK\n", .{test_fn.name});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
test "jsruntime" {
|
||||||
// generate tests
|
// generate tests
|
||||||
try generate.tests();
|
try generate.tests();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user