mirror of
https://codeberg.org/ziglings/exercises.git
synced 2025-06-06 15:54:47 +00:00
Output from #60 adapted
This commit is contained in:
parent
7382949018
commit
f285bd59a4
@ -283,12 +283,11 @@ pub fn build(b: *Build) !void {
|
|||||||
starting_exercise = try std.fmt.parseInt(u32, contents, 10);
|
starting_exercise = try std.fmt.parseInt(u32, contents, 10);
|
||||||
} else |err| {
|
} else |err| {
|
||||||
switch (err) {
|
switch (err) {
|
||||||
|
|
||||||
std.fs.File.OpenError.FileNotFound => {
|
std.fs.File.OpenError.FileNotFound => {
|
||||||
// This is fine, may be the first time tests are run or progress have been reset
|
// This is fine, may be the first time tests are run or progress have been reset
|
||||||
},
|
},
|
||||||
else => {
|
else => {
|
||||||
print("Unable to open {s}: {}\n", .{progress_filename, err});
|
print("Unable to open {s}: {}\n", .{ progress_filename, err });
|
||||||
return err;
|
return err;
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
@ -964,7 +963,7 @@ const exercises = [_]Exercise{
|
|||||||
},
|
},
|
||||||
.{
|
.{
|
||||||
.main_file = "060_floats.zig",
|
.main_file = "060_floats.zig",
|
||||||
.output = "Shuttle liftoff weight: 2032092kg",
|
.output = "Shuttle liftoff weight: 2032kg",
|
||||||
},
|
},
|
||||||
.{
|
.{
|
||||||
.main_file = "061_coercions.zig",
|
.main_file = "061_coercions.zig",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user