summaryrefslogtreecommitdiff
path: root/src/main.zig
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.zig')
-rw-r--r--src/main.zig9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/main.zig b/src/main.zig
index 3808e1f8..9822ea3c 100644
--- a/src/main.zig
+++ b/src/main.zig
@@ -177,7 +177,12 @@ fn parseCtrlKey(raw: []const u8) ?u21 {
// The shells are imported inside main(), which a test build never analyses —
// so their inline tests need naming here to exist at all. gui.zig only
// compiles when it IS the shell (it @cImports SDL), hence the comptime gate;
-// under -Dplatform=tty this block analyses to nothing.
+// under -Dplatform=tty this block analyses to nothing. Naming a file gets THAT
+// file's tests and no further: fonts.zig is imported by both gui.zig and
+// builtins.zig and still needs its own line here.
test {
- if (comptime pardes.platform == .gui) _ = @import("gui/gui.zig");
+ if (comptime pardes.platform == .gui) {
+ _ = @import("gui/gui.zig");
+ _ = @import("gui/fonts.zig");
+ }
}