diff options
| author | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-27 16:34:25 -0500 |
|---|---|---|
| committer | Hunter Kvalevog <hunter@kvog.sh> | 2026-09-27 16:34:25 -0500 |
| commit | 54731f0fc0b0fde18438853c0a8abaa968edb57a (patch) | |
| tree | c367be80facbea14421d6bfbabd498faf9446a94 /rustlings/exercises/17_tests/tests1.rs | |
| parent | b4f5f3bc39fb2187c042ad2fa514e51d1261b4d1 (diff) | |
rustlings: complete 17
Diffstat (limited to 'rustlings/exercises/17_tests/tests1.rs')
| -rw-r--r-- | rustlings/exercises/17_tests/tests1.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/rustlings/exercises/17_tests/tests1.rs b/rustlings/exercises/17_tests/tests1.rs index 7529f9f..7fd7e10 100644 --- a/rustlings/exercises/17_tests/tests1.rs +++ b/rustlings/exercises/17_tests/tests1.rs @@ -13,11 +13,12 @@ fn main() { mod tests { // TODO: Import `is_even`. You can use a wildcard to import everything in // the outer module. + use super::*; #[test] fn you_can_assert() { // TODO: Test the function `is_even` with some values. - assert!(); - assert!(); + assert!(is_even(2)); + assert!(!is_even(3)); } } |