mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-15 00:06:09 +03:00
terminal: move tests into main
This commit is contained in:
@ -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);
|
||||||
|
@ -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");
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user