From 248dd4415efaf090a040d4f9108f290996806a1c Mon Sep 17 00:00:00 2001 From: mo8it Date: Thu, 4 Jul 2024 13:00:04 +0200 Subject: [PATCH] Add comment to options1 --- exercises/12_options/options1.rs | 3 ++- solutions/12_options/options1.rs | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) 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); }