diff --git a/libs/glfw/src/key.zig b/libs/glfw/src/key.zig index e84e1d26..d274378b 100644 --- a/libs/glfw/src/key.zig +++ b/libs/glfw/src/key.zig @@ -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");