From f29e79240613948a05674e6a76b4df96436642b0 Mon Sep 17 00:00:00 2001 From: Paul Czeresko <p.czeresko.3@gmail.com> Date: Sun, 21 Jul 2019 17:12:23 -0400 Subject: [PATCH] Complete tests section --- exercises/tests/tests1.rs | 2 +- exercises/tests/tests2.rs | 2 +- exercises/tests/tests3.rs | 6 +++++- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/exercises/tests/tests1.rs b/exercises/tests/tests1.rs index b11221f..8ad5d27 100644 --- a/exercises/tests/tests1.rs +++ b/exercises/tests/tests1.rs @@ -10,7 +10,7 @@ mod tests { #[test] fn you_can_assert() { - assert!(); + assert!(true); } } diff --git a/exercises/tests/tests2.rs b/exercises/tests/tests2.rs index 6775d61..ea080b9 100644 --- a/exercises/tests/tests2.rs +++ b/exercises/tests/tests2.rs @@ -6,7 +6,7 @@ mod tests { #[test] fn you_can_assert_eq() { - assert_eq!(); + assert_eq!(true, true); } } diff --git a/exercises/tests/tests3.rs b/exercises/tests/tests3.rs index e10d2aa..737dc9a 100644 --- a/exercises/tests/tests3.rs +++ b/exercises/tests/tests3.rs @@ -13,7 +13,11 @@ mod tests { #[test] fn is_true_when_even() { - assert!(); + assert!(is_even(42)); + } + + fn is_false_when_odd() { + assert!(!is_even(69)); } }