terminal: move tests into main

This commit is contained in:
Mitchell Hashimoto
2022-05-10 14:40:37 -07:00
parent 6589a47352
commit de7d950052
2 changed files with 3 additions and 7 deletions

View File

@ -631,12 +631,6 @@ fn getOrPutCell(self: *Terminal, alloc: Allocator, x: usize, y: usize) !*Cell {
return &line.items[x]; return &line.items[x];
} }
test {
_ = @import("osc.zig");
_ = Parser;
_ = Tabstops;
}
test "Terminal: input with no control characters" { test "Terminal: input with no control characters" {
var t = try init(testing.allocator, 80, 80); var t = try init(testing.allocator, 80, 80);
defer t.deinit(testing.allocator); defer t.deinit(testing.allocator);

View File

@ -1,11 +1,13 @@
pub const Terminal = @import("Terminal.zig"); pub const Terminal = @import("Terminal.zig");
pub const Parser = @import("Parser.zig");
// Not exported because they're just used for tests. // Not exported because they're just used for tests.
test { test {
_ = Parser;
_ = Terminal; _ = Terminal;
_ = @import("osc.zig");
_ = @import("parse_table.zig"); _ = @import("parse_table.zig");
_ = @import("Parser.zig");
_ = @import("Tabstops.zig"); _ = @import("Tabstops.zig");
} }