mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-08-29 18:41:40 +00:00
TODO
This commit is contained in:
@@ -92,9 +92,13 @@ pub const Cell = struct {
|
||||
test {
|
||||
// We use this test to ensure we always get the right size of the attrs
|
||||
const cell: Cell = .{ .char = 0 };
|
||||
_ = @bitCast(u8, cell.attrs);
|
||||
try std.testing.expectEqual(1, @sizeOf(@TypeOf(cell.attrs)));
|
||||
}
|
||||
|
||||
log.warn("CELL={}", .{@sizeOf(Cell)});
|
||||
test {
|
||||
//log.warn("CELL={}", .{@sizeOf(Cell)});
|
||||
try std.testing.expectEqual(16, @sizeOf(Cell));
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -94,10 +94,14 @@ pub const Name = enum(u8) {
|
||||
};
|
||||
|
||||
/// RGB
|
||||
pub const RGB = struct {
|
||||
pub const RGB = packed struct {
|
||||
r: u8,
|
||||
g: u8,
|
||||
b: u8,
|
||||
|
||||
test {
|
||||
try std.testing.expectEqual(@as(usize, 3), @sizeOf(RGB));
|
||||
}
|
||||
};
|
||||
|
||||
test "palette: default" {
|
||||
|
||||
Reference in New Issue
Block a user