glfw: cleanup two tests
Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
parent
c2af312200
commit
04a213b411
1 changed files with 7 additions and 5 deletions
|
|
@ -139,14 +139,16 @@ pub fn basicTest() !void {
|
||||||
}
|
}
|
||||||
|
|
||||||
test "version" {
|
test "version" {
|
||||||
|
// Reference these so the tests in these files get pulled in / ran.
|
||||||
|
_ = Monitor;
|
||||||
|
_ = GammaRamp;
|
||||||
|
_ = VideoMode;
|
||||||
|
_ = Window;
|
||||||
|
|
||||||
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()});
|
||||||
}
|
}
|
||||||
|
|
||||||
test "basic" {
|
test "basic" {
|
||||||
_ = Monitor;
|
try basicTest();
|
||||||
_ = GammaRamp;
|
|
||||||
_ = VideoMode;
|
|
||||||
_ = Window;
|
|
||||||
basicTest() catch unreachable;
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue