Feat: Add small test case for practice.
This commit is contained in:
+10
@@ -28,3 +28,13 @@ fn main() -> Result<()> {
|
|||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[allow(dead_code)]
|
||||||
|
fn answer() -> i32 {
|
||||||
|
return 42;
|
||||||
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
fn check_answer_validity() {
|
||||||
|
assert_eq!(answer(), 42);
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user