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
@@ -14,6 +14,10 @@ trait AppendBar {
// TODO: Implement trait `AppendBar` for a vector of strings.
fn main() {
// You can optionally experiment here.
}
#[cfg(test)]
mod tests {
use super::*;
+4
View File
@@ -23,6 +23,10 @@ struct OtherSoftware {
impl Licensed for SomeSoftware {} // Don't edit this line
impl Licensed for OtherSoftware {} // Don't edit this line
fn main() {
// You can optionally experiment here.
}
#[cfg(test)]
mod tests {
use super::*;
+4
View File
@@ -25,6 +25,10 @@ fn compare_license_types(software: ??, software_two: ??) -> bool {
software.licensing_info() == software_two.licensing_info()
}
fn main() {
// You can optionally experiment here.
}
#[cfg(test)]
mod tests {
use super::*;