mirror of
https://code.blicky.net/yorhel/ncdu.git
synced 2026-01-12 17:08:39 -09:00
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:
parent
058b26bf9a
commit
f0764ea24e
2 changed files with 9 additions and 4 deletions
|
|
@ -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" {
|
||||
const lst = [_][:0]const u8{ "a", "-abcd=e", "--opt1=arg1", "--opt2", "arg2", "-x", "foo", "", "--", "--arg", "", "-", };
|
||||
|
|
|
|||
|
|
@ -457,8 +457,8 @@ pub var root: *Dir = undefined;
|
|||
|
||||
|
||||
test "entry" {
|
||||
var e = Entry.create(.file, false, "hello") catch unreachable;
|
||||
std.debug.assert(e.etype == .file);
|
||||
std.debug.assert(!e.isext);
|
||||
std.testing.expectEqualStrings(e.name(), "hello");
|
||||
var e = Entry.create(.file, false, "hello");
|
||||
try std.testing.expectEqual(e.etype, .file);
|
||||
try std.testing.expect(!e.isext);
|
||||
try std.testing.expectEqualStrings(e.name(), "hello");
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue