diff --git a/exercises/12_options/options1.rs b/exercises/12_options/options1.rs index 5009f8b..9964807 100644 --- a/exercises/12_options/options1.rs +++ b/exercises/12_options/options1.rs @@ -19,7 +19,8 @@ mod tests { // TODO: Fix this test. How do you get the value contained in the // Option? let icecreams = maybe_icecream(12); - assert_eq!(icecreams, 5); + + assert_eq!(icecreams, 5); // Don't change this line. } #[test] diff --git a/solutions/12_options/options1.rs b/solutions/12_options/options1.rs index 230af3a..4d615dd 100644 --- a/solutions/12_options/options1.rs +++ b/solutions/12_options/options1.rs @@ -22,6 +22,7 @@ mod tests { fn raw_value() { // Using `unwrap` is fine in a test. let icecreams = maybe_icecream(12).unwrap(); + assert_eq!(icecreams, 5); }