fix test syntax

pull/5219/head
Mitchell Hashimoto 2025-07-03 09:29:36 -07:00
parent 465ac5b1b7
commit 32764f3a1d
No known key found for this signature in database
GPG Key ID: 523D5DC389D273BC
1 changed files with 3 additions and 3 deletions

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);
}