mirror of
https://github.com/notohh/rustlings.git
synced 2024-11-22 14:02:22 -05:00
Merge pull request #1148 from vostok92/main
fix(options1): wrong assertions
This commit is contained in:
commit
3ac002934d
1 changed files with 2 additions and 2 deletions
|
@ -20,7 +20,7 @@ mod tests {
|
||||||
#[test]
|
#[test]
|
||||||
fn check_icecream() {
|
fn check_icecream() {
|
||||||
assert_eq!(maybe_icecream(9), Some(5));
|
assert_eq!(maybe_icecream(9), Some(5));
|
||||||
assert_eq!(maybe_icecream(10), Some(0));
|
assert_eq!(maybe_icecream(10), Some(5));
|
||||||
assert_eq!(maybe_icecream(23), Some(0));
|
assert_eq!(maybe_icecream(23), Some(0));
|
||||||
assert_eq!(maybe_icecream(22), Some(0));
|
assert_eq!(maybe_icecream(22), Some(0));
|
||||||
assert_eq!(maybe_icecream(25), None);
|
assert_eq!(maybe_icecream(25), None);
|
||||||
|
@ -30,6 +30,6 @@ mod tests {
|
||||||
fn raw_value() {
|
fn raw_value() {
|
||||||
// TODO: Fix this test. How do you get at the value contained in the Option?
|
// TODO: Fix this test. How do you get at the value contained in the Option?
|
||||||
let icecreams = maybe_icecream(12);
|
let icecreams = maybe_icecream(12);
|
||||||
assert_eq!(icecreams, 0);
|
assert_eq!(icecreams, 5);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue