mirror of
https://github.com/rust-lang/rustlings.git
synced 2025-12-31 07:49:18 +00:00
Complete test2
This commit is contained in:
parent
f29e792406
commit
0d99ecb674
@ -17,11 +17,11 @@ mod tests {
|
|||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn returns_twice_of_positive_numbers() {
|
fn returns_twice_of_positive_numbers() {
|
||||||
assert_eq!(times_two(4), ???);
|
assert_eq!(times_two(4), 8);
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
fn returns_twice_of_negative_numbers() {
|
fn returns_twice_of_negative_numbers() {
|
||||||
// TODO write an assert for `times_two(-4)`
|
assert_eq!(times_two(-4), -8);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user