diff options
| author | liv <mokou@fastmail.com> | 2022-08-17 10:41:34 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-08-17 10:41:34 +0200 |
| commit | 3ac002934dc7d43c6c3477a0aab04b0aacf72572 (patch) | |
| tree | 487da7b41e25b69dc8ddbdba91d5e47a1cdd494c | |
| parent | 714a8075cc34e3823513cd3ea26bd4a92c1c1129 (diff) | |
| parent | 4455c22b9aa5e4a6735e3ae67a4c9e75af24128a (diff) | |
Merge pull request #1148 from vostok92/main
fix(options1): wrong assertions
| -rw-r--r-- | exercises/options/options1.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/exercises/options/options1.rs b/exercises/options/options1.rs index 022d3d6..d1735c2 100644 --- a/exercises/options/options1.rs +++ b/exercises/options/options1.rs @@ -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); @@ -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); } } |
