Update usage of testing.expectEqual

This commit is contained in:
Krzysztof Wolicki
2024-01-04 13:30:34 +01:00
parent 1d49492e04
commit 0842e572df
2 changed files with 3 additions and 3 deletions

View File

@ -161,7 +161,7 @@ test "Padding balanced on zero" {
const cell: CellSize = .{ .width = 10, .height = 20 };
const screen: ScreenSize = .{ .width = 0, .height = 0 };
const padding = Padding.balanced(screen, grid, cell);
try testing.expectEqual(padding, .{});
try testing.expectEqual(Padding{}, padding);
}
test "GridSize update exact" {

View File

@ -1209,7 +1209,7 @@ test "OSC: get palette color" {
const cmd = p.end('\x1b').?;
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);
}
@ -1223,7 +1223,7 @@ test "OSC: set palette color" {
const cmd = p.end('\x1b').?;
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");
}