glfw: use refAllDeclsRecursive to find mistakes

This commit is contained in:
alichraghi 2022-07-20 21:11:40 +04:30 committed by Stephen Gutekanst
parent e0884da649
commit a7a7362848

View file

@ -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()});
} }