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
@@ -19,6 +19,10 @@ impl PositiveNonzeroInteger {
}
}
fn main() {
// You can optionally experiment here.
}
#[test]
fn test_creation() {
assert!(PositiveNonzeroInteger::new(10).is_ok());