Complete tests section

This commit is contained in:
Paul Czeresko 2019-07-21 17:12:23 -04:00
parent 7c71a8ae58
commit f29e792406
3 changed files with 7 additions and 3 deletions

View file

@ -10,7 +10,7 @@
mod tests { mod tests {
#[test] #[test]
fn you_can_assert() { fn you_can_assert() {
assert!(); assert!(true);
} }
} }

View file

@ -6,7 +6,7 @@
mod tests { mod tests {
#[test] #[test]
fn you_can_assert_eq() { fn you_can_assert_eq() {
assert_eq!(); assert_eq!(true, true);
} }
} }

View file

@ -13,7 +13,11 @@ mod tests {
#[test] #[test]
fn is_true_when_even() { fn is_true_when_even() {
assert!(); assert!(is_even(42));
}
fn is_false_when_odd() {
assert!(!is_even(69));
} }
} }