glfw: renable getName test

This commit is contained in:
Ali Chraghi 2022-09-02 17:21:04 +04:30 committed by Stephen Gutekanst
parent cc732dc7d7
commit 03a5cfc252

View file

@ -255,14 +255,13 @@ pub const Key = enum(c_int) {
}
};
// TODO: https://github.com/hexops/mach/issues/375
// test "getName" {
// const glfw = @import("main.zig");
// try glfw.init(.{});
// defer glfw.terminate();
test "getName" {
const glfw = @import("main.zig");
try glfw.init(.{});
defer glfw.terminate();
// _ = glfw.Key.a.getName(0) catch |err| std.debug.print("failed to get key name, not supported? error={}\n", .{err});
// }
_ = glfw.Key.a.getName(0) catch |err| std.debug.print("failed to get key name, not supported? error={}\n", .{err});
}
test "getScancode" {
const glfw = @import("main.zig");