Require a main function in all exercises

This commit is contained in:
mo8it
2024-04-17 22:46:21 +02:00
parent d83cc69afe
commit cb9f1ac9ce
39 changed files with 199 additions and 44 deletions
+4
View File
@@ -10,6 +10,10 @@ pub fn bigger(a: i32, b: i32) -> i32 {
// - additional variables
}
fn main() {
// You can optionally experiment here.
}
// Don't mind this for now :)
#[cfg(test)]
mod tests {
+4
View File
@@ -13,6 +13,10 @@ pub fn foo_if_fizz(fizzish: &str) -> &str {
}
}
fn main() {
// You can optionally experiment here.
}
// No test changes needed!
#[cfg(test)]
mod tests {
+4
View File
@@ -27,6 +27,10 @@ pub fn animal_habitat(animal: &str) -> &'static str {
habitat
}
fn main() {
// You can optionally experiment here.
}
// No test changes needed.
#[cfg(test)]
mod tests {