changed the patch files that we can also use them with busybox for testing in Woodpecker

This commit is contained in:
Chris Boesch
2023-10-05 20:18:04 +02:00
parent 992323ac6c
commit 7491e3df91
109 changed files with 1606 additions and 770 deletions

View File

@@ -1,11 +1,18 @@
28a29,31
> pub fn getTrunk(self: *Elephant) *Elephant {
> return self.trunk.?;
> }
30,31c33,35
< ???
<
---
> pub fn hasTrunk(self: *Elephant) bool {
> return (self.trunk != null);
> }
--- exercises/049_quiz6.zig 2023-10-03 22:15:22.122241138 +0200
+++ answers/049_quiz6.zig 2023-10-05 20:04:07.062767005 +0200
@@ -26,9 +26,13 @@
// Your Elephant trunk methods go here!
// ---------------------------------------------------
+ pub fn getTrunk(self: *Elephant) *Elephant {
+ return self.trunk.?;
+ }
- ???
-
+ pub fn hasTrunk(self: *Elephant) bool {
+ return (self.trunk != null);
+ }
// ---------------------------------------------------
pub fn visit(self: *Elephant) void {