glfw: improve test names

Signed-off-by: Stephen Gutekanst <stephen@hexops.com>
This commit is contained in:
Stephen Gutekanst 2023-05-18 22:14:56 -07:00
parent 35c698702b
commit 5ab519c025

View file

@ -503,7 +503,7 @@ test "getVersionString" {
std.debug.print("\nstring: {s}\n", .{getVersionString()});
}
test "pollEvents" {
test "init" {
init(.{ .cocoa_chdir_resources = true });
if (getErrorString()) |err| {
std.log.err("failed to initialize GLFW: {?s}", .{err});
@ -512,7 +512,7 @@ test "pollEvents" {
defer terminate();
}
test "pollEvents2" {
test "pollEvents" {
defer clearError(); // clear any error we generate
if (!init(.{})) {
std.log.err("failed to initialize GLFW: {?s}", .{getErrorString()});