Add errors to exercises that compile without user changes

pull/144/head
Yvan Sraka 6 years ago
parent 4b0b7093e5
commit a71bc62c29
No known key found for this signature in database
GPG Key ID: 60E5D1A0EF691DE6

@ -16,7 +16,8 @@ fn main() {
}
fn fill_vec(vec: Vec<i32>) -> Vec<i32> {
// `fill_vec()` no longer take `vec: Vec<i32>` as argument
fn fill_vec() -> Vec<i32> {
let mut vec = vec;
vec.push(22);

@ -17,6 +17,11 @@ mod tests {
#[test]
fn returns_twice_of_positive_numbers() {
assert_eq!(4, 4);
assert_eq!(times_two(4), ???);
}
#[test]
fn returns_twice_of_negative_numbers() {
// TODO write an assert for `times_two(-4)`
}
}

Loading…
Cancel
Save