Skip to content

Commit

Permalink
Merge pull request rust-lang#1148 from vostok92/main
Browse files Browse the repository at this point in the history
fix(options1): wrong assertions
  • Loading branch information
shadows-withal authored Aug 17, 2022
2 parents 714a807 + 4455c22 commit 3ac0029
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions exercises/options/options1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ mod tests {
#[test]
fn check_icecream() {
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(22), Some(0));
assert_eq!(maybe_icecream(25), None);
Expand All @@ -30,6 +30,6 @@ mod tests {
fn raw_value() {
// TODO: Fix this test. How do you get at the value contained in the Option?
let icecreams = maybe_icecream(12);
assert_eq!(icecreams, 0);
assert_eq!(icecreams, 5);
}
}

0 comments on commit 3ac0029

Please sign in to comment.