fix test syntax

This commit is contained in:
Mitchell Hashimoto
2025-07-03 09:29:36 -07:00
parent 465ac5b1b7
commit 32764f3a1d

View File

@ -4500,11 +4500,11 @@ pub const TerminalColor = union(enum) {
try TerminalColor.parseCLI("black"),
);
try testing.expectEqual(
TerminalColor{.@"cell-foreground"},
TerminalColor.@"cell-foreground",
try TerminalColor.parseCLI("cell-foreground"),
);
try testing.expectEqual(
TerminalColor{.@"cell-background"},
TerminalColor.@"cell-background",
try TerminalColor.parseCLI("cell-background"),
);
@ -4516,7 +4516,7 @@ pub const TerminalColor = union(enum) {
var buf = std.ArrayList(u8).init(testing.allocator);
defer buf.deinit();
var sc: TerminalColor = .{.@"cell-foreground"};
var sc: TerminalColor = .@"cell-foreground";
try sc.formatEntry(formatterpkg.entryFormatter("a", buf.writer()));
try testing.expectEqualSlices(u8, "a = cell-foreground\n", buf.items);
}