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 8dfffe8 + e8122da commit cc1b22dCopy full SHA for cc1b22d
exercises/options/options1.rs
@@ -19,7 +19,8 @@ mod tests {
19
20
#[test]
21
fn check_icecream() {
22
- assert_eq!(maybe_icecream(10), Some(5));
+ assert_eq!(maybe_icecream(9), Some(5));
23
+ assert_eq!(maybe_icecream(10), Some(0));
24
assert_eq!(maybe_icecream(23), Some(0));
25
assert_eq!(maybe_icecream(22), Some(0));
26
assert_eq!(maybe_icecream(25), None);
@@ -29,6 +30,6 @@ mod tests {
29
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);
- assert_eq!(icecreams, 5);
33
+ assert_eq!(icecreams, 0);
34
}
35
0 commit comments