We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 714a807 + 4455c22 commit 3ac0029Copy full SHA for 3ac0029
exercises/options/options1.rs
@@ -20,7 +20,7 @@ mod tests {
20
#[test]
21
fn check_icecream() {
22
assert_eq!(maybe_icecream(9), Some(5));
23
- assert_eq!(maybe_icecream(10), Some(0));
+ assert_eq!(maybe_icecream(10), Some(5));
24
assert_eq!(maybe_icecream(23), Some(0));
25
assert_eq!(maybe_icecream(22), Some(0));
26
assert_eq!(maybe_icecream(25), None);
@@ -30,6 +30,6 @@ mod tests {
30
fn raw_value() {
31
// TODO: Fix this test. How do you get at the value contained in the Option?
32
let icecreams = maybe_icecream(12);
33
- assert_eq!(icecreams, 0);
+ assert_eq!(icecreams, 5);
34
}
35
0 commit comments