glfw: use refAllDeclsRecursive
to find mistakes
This commit is contained in:
parent
e0884da649
commit
a7a7362848
1 changed files with 4 additions and 10 deletions
14
src/main.zig
14
src/main.zig
|
@ -524,17 +524,11 @@ pub fn basicTest() !void {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
test "getVersionString" {
|
test {
|
||||||
// Reference these so the tests in these files get pulled in / ran.
|
std.testing.refAllDeclsRecursive(@This());
|
||||||
_ = Monitor;
|
}
|
||||||
_ = GammaRamp;
|
|
||||||
_ = Image;
|
|
||||||
_ = key;
|
|
||||||
_ = Joystick;
|
|
||||||
_ = VideoMode;
|
|
||||||
_ = Window;
|
|
||||||
_ = Cursor;
|
|
||||||
|
|
||||||
|
test "getVersionString" {
|
||||||
std.debug.print("\nGLFW version v{}.{}.{}\n", .{ version.major, version.minor, version.revision });
|
std.debug.print("\nGLFW version v{}.{}.{}\n", .{ version.major, version.minor, version.revision });
|
||||||
std.debug.print("\nstring: {s}\n", .{getVersionString()});
|
std.debug.print("\nstring: {s}\n", .{getVersionString()});
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue