mirror of
https://codeberg.org/ziglings/exercises.git
synced 2026-07-28 18:25:16 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| c85daab1a1 | |||
| f6c3e4edc4 |
@@ -359,7 +359,6 @@ fn runExe(ctx: Context, ex: Exercise) !void {
|
||||
return err;
|
||||
};
|
||||
|
||||
resetLine();
|
||||
print("Checking {s}...\n", .{ex.main_file});
|
||||
|
||||
return checkOutput(io, arena, ex, result);
|
||||
@@ -392,7 +391,6 @@ fn runTest(ctx: Context, ex: Exercise) !void {
|
||||
return err;
|
||||
};
|
||||
|
||||
resetLine();
|
||||
print("Checking {s}...\n", .{ex.main_file});
|
||||
|
||||
return checkTest(ex, result);
|
||||
@@ -486,10 +484,6 @@ fn help(ex: Exercise, mode: Mode) void {
|
||||
});
|
||||
}
|
||||
|
||||
fn resetLine() void {
|
||||
if (stderr_term_mode == .escape_codes) print("{s}", .{"\x1b[2K\r"});
|
||||
}
|
||||
|
||||
// Removes trailing whitespace per line and any trailing LF at the end.
|
||||
fn trimLines(arena: std.mem.Allocator, buf: []const u8) ![]const u8 {
|
||||
var list = try std.ArrayList(u8).initCapacity(arena, buf.len);
|
||||
|
||||
Reference in New Issue
Block a user