diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/gui/gui.zig | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gui/gui.zig b/src/gui/gui.zig index 9d785b96..98a203a6 100644 --- a/src/gui/gui.zig +++ b/src/gui/gui.zig @@ -165,7 +165,7 @@ test "FreeType and HarfBuzz allocate from the gui allocator and give it all back try std.testing.expectEqual(@as(c_int, 0), c.ui_font_substitutes(font, c.ui_font_glyph(font, '-'))); // A font with ligatures runs the whole HarfBuzz pass. - const bytes = filesystem.readFile(std.testing.allocator, "assets/MapleMono-NF-Regular.ttf") catch return; + const bytes = try filesystem.readFile(std.testing.allocator, "assets/MapleMono-NF-Regular.ttf"); defer std.testing.allocator.free(bytes); const maple = c.ui_font_new(bytes.ptr, @intCast(bytes.len)) orelse return error.FontInit; defer c.ui_font_free(maple); @@ -6274,7 +6274,7 @@ fn textTestLine(comptime text: []const u8) [text.len]pardes.Cell { } test "a ligature draws across its cells, one slice each, and comes apart under the cursor" { - const bytes = filesystem.readFile(std.testing.allocator, "assets/MapleMono-NF-Regular.ttf") catch return error.SkipZigTest; + const bytes = try filesystem.readFile(std.testing.allocator, "assets/MapleMono-NF-Regular.ttf"); defer std.testing.allocator.free(bytes); const font = c.ui_font_new(bytes.ptr, @intCast(bytes.len)) orelse return error.FontInit; defer c.ui_font_free(font); |
