diff options
Diffstat (limited to 'exercises/tests/tests3.rs')
| -rw-r--r-- | exercises/tests/tests3.rs | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/exercises/tests/tests3.rs b/exercises/tests/tests3.rs index af48095..693b8aa 100644 --- a/exercises/tests/tests3.rs +++ b/exercises/tests/tests3.rs @@ -1,7 +1,8 @@ // tests3.rs // This test isn't testing our function -- make it do that in such a way that // the test passes. Then write a second test that tests whether we get the result -// we expect to get when we call `is_even(5)`. Scroll down for hints! +// we expect to get when we call `is_even(5)`. +// Execute `rustlings hint tests3` for hints :) // I AM NOT DONE @@ -18,28 +19,3 @@ mod tests { assert!(); } } - - - - - - - - - - - - - - - - - - - - - - -// You can call a function right where you're passing arguments to `assert!` -- so you could do -// something like `assert!(having_fun())`. If you want to check that you indeed get false, you -// can negate the result of what you're doing using `!`, like `assert!(!having_fun())`. |
