mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-05-26 06:48:33 +00:00
ci: cleanup
This commit is contained in:
@@ -230,8 +230,8 @@ test "encode" {
|
||||
|
||||
// Encode
|
||||
var buf: [1024]u8 = undefined;
|
||||
var buf_stream = std.io.fixedBufferStream(&buf);
|
||||
try src.encode(buf_stream.writer());
|
||||
var writer: std.Io.Writer = .fixed(&buf);
|
||||
try src.encode(&writer);
|
||||
|
||||
const expected =
|
||||
"ghostty|xterm-ghostty|Ghostty,\n" ++
|
||||
@@ -239,5 +239,5 @@ test "encode" {
|
||||
"\tccc@,\n" ++
|
||||
"\tcolors#256,\n" ++
|
||||
"\tbel=^G,\n";
|
||||
try std.testing.expectEqualStrings(@as([]const u8, expected), buf_stream.getWritten());
|
||||
try std.testing.expectEqualStrings(@as([]const u8, expected), writer.buffered());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user