mod: adapt implementation to zig version 0.15.2
Some checks failed
Zig Project Action / Lint, Spell-check and test zig project (push) Failing after 54s

This commit is contained in:
2026-01-17 12:05:20 +01:00
parent e1e8907848
commit 4874252e8c
19 changed files with 339 additions and 392 deletions

View File

@@ -211,13 +211,16 @@ pub fn expectEqualCells(origin: Point, size: Point, expected: []const Cell, actu
if (!differ) return;
// test failed
var stdout_buffer: [1024]u8 = undefined;
const io = debug.lockStderr(&stdout_buffer);
defer debug.unlockStderr();
var buf: [1024]u8 = undefined;
const error_writer = &io.file_writer.interface;
std.debug.lockStdErr();
defer std.debug.unlockStdErr();
var buffer = std.fs.File.stderr().writer(&buf);
var error_writer = &buffer.interface;
try error_writer.writeAll(writer.buffer[0..writer.end]);
try error_writer.flush();
return error.TestExpectEqualCells;
}