mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-14 15:56:13 +03:00
Update usage of testing.expectEqual
This commit is contained in:
@ -161,7 +161,7 @@ test "Padding balanced on zero" {
|
|||||||
const cell: CellSize = .{ .width = 10, .height = 20 };
|
const cell: CellSize = .{ .width = 10, .height = 20 };
|
||||||
const screen: ScreenSize = .{ .width = 0, .height = 0 };
|
const screen: ScreenSize = .{ .width = 0, .height = 0 };
|
||||||
const padding = Padding.balanced(screen, grid, cell);
|
const padding = Padding.balanced(screen, grid, cell);
|
||||||
try testing.expectEqual(padding, .{});
|
try testing.expectEqual(Padding{}, padding);
|
||||||
}
|
}
|
||||||
|
|
||||||
test "GridSize update exact" {
|
test "GridSize update exact" {
|
||||||
|
@ -1209,7 +1209,7 @@ test "OSC: get palette color" {
|
|||||||
|
|
||||||
const cmd = p.end('\x1b').?;
|
const cmd = p.end('\x1b').?;
|
||||||
try testing.expect(cmd == .report_color);
|
try testing.expect(cmd == .report_color);
|
||||||
try testing.expectEqual(cmd.report_color.kind, .{ .palette = 1 });
|
try testing.expectEqual(Command.ColorKind{ .palette = 1 }, cmd.report_color.kind);
|
||||||
try testing.expectEqual(cmd.report_color.terminator, .st);
|
try testing.expectEqual(cmd.report_color.terminator, .st);
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -1223,7 +1223,7 @@ test "OSC: set palette color" {
|
|||||||
|
|
||||||
const cmd = p.end('\x1b').?;
|
const cmd = p.end('\x1b').?;
|
||||||
try testing.expect(cmd == .set_color);
|
try testing.expect(cmd == .set_color);
|
||||||
try testing.expectEqual(cmd.set_color.kind, .{ .palette = 17 });
|
try testing.expectEqual(Command.ColorKind{ .palette = 17 }, cmd.set_color.kind);
|
||||||
try testing.expectEqualStrings(cmd.set_color.value, "rgb:aa/bb/cc");
|
try testing.expectEqualStrings(cmd.set_color.value, "rgb:aa/bb/cc");
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user