Fix unreferenced test in model.zig

The other files were already indirectly referenced, but it's good to
make it explicit.
This commit is contained in:
Yorhel 2022-08-08 18:23:45 +02:00
parent 058b26bf9a
commit f0764ea24e
2 changed files with 9 additions and 4 deletions

View file

@ -548,6 +548,11 @@ pub fn handleEvent(block: bool, force_draw: bool) void {
} }
} }
test "imports" {
_ = @import("model.zig");
_ = @import("ui.zig");
_ = @import("util.zig");
}
test "argument parser" { test "argument parser" {
const lst = [_][:0]const u8{ "a", "-abcd=e", "--opt1=arg1", "--opt2", "arg2", "-x", "foo", "", "--", "--arg", "", "-", }; const lst = [_][:0]const u8{ "a", "-abcd=e", "--opt1=arg1", "--opt2", "arg2", "-x", "foo", "", "--", "--arg", "", "-", };

View file

@ -457,8 +457,8 @@ pub var root: *Dir = undefined;
test "entry" { test "entry" {
var e = Entry.create(.file, false, "hello") catch unreachable; var e = Entry.create(.file, false, "hello");
std.debug.assert(e.etype == .file); try std.testing.expectEqual(e.etype, .file);
std.debug.assert(!e.isext); try std.testing.expect(!e.isext);
std.testing.expectEqualStrings(e.name(), "hello"); try std.testing.expectEqualStrings(e.name(), "hello");
} }