Skip to content

Commit 3ac0029

Browse files
authored
Merge pull request #1148 from vostok92/main
fix(options1): wrong assertions
2 parents 714a807 + 4455c22 commit 3ac0029

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

exercises/options/options1.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ mod tests {
2020
#[test]
2121
fn check_icecream() {
2222
assert_eq!(maybe_icecream(9), Some(5));
23-
assert_eq!(maybe_icecream(10), Some(0));
23+
assert_eq!(maybe_icecream(10), Some(5));
2424
assert_eq!(maybe_icecream(23), Some(0));
2525
assert_eq!(maybe_icecream(22), Some(0));
2626
assert_eq!(maybe_icecream(25), None);
@@ -30,6 +30,6 @@ mod tests {
3030
fn raw_value() {
3131
// TODO: Fix this test. How do you get at the value contained in the Option?
3232
let icecreams = maybe_icecream(12);
33-
assert_eq!(icecreams, 0);
33+
assert_eq!(icecreams, 5);
3434
}
3535
}

0 commit comments

Comments
 (0)