diff options
| author | liv <mokou@fastmail.com> | 2023-06-12 12:39:02 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-06-12 12:39:02 +0200 |
| commit | b44472b2372ef29f6c7053d0f8e87479fd02c52d (patch) | |
| tree | 3f549ec5f5b85cd5c8cc6bf530a42bdde379644b /exercises/hashmaps/hashmaps2.rs | |
| parent | 7eef5d15eef780f93e22b1b4e0185f7708219ea0 (diff) | |
| parent | 4cfcf2ccd783fe3b7b28a3cae878d56ae3334b69 (diff) | |
Merge branch 'main' into comment_cleanup
Diffstat (limited to 'exercises/hashmaps/hashmaps2.rs')
| -rw-r--r-- | exercises/hashmaps/hashmaps2.rs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/exercises/hashmaps/hashmaps2.rs b/exercises/hashmaps/hashmaps2.rs index f913848..a592569 100644 --- a/exercises/hashmaps/hashmaps2.rs +++ b/exercises/hashmaps/hashmaps2.rs @@ -81,4 +81,13 @@ mod tests { let count = basket.values().sum::<u32>(); assert!(count > 11); } + + #[test] + fn all_fruit_types_in_basket() { + let mut basket = get_fruit_basket(); + fruit_basket(&mut basket); + for amount in basket.values() { + assert_ne!(amount, &0); + } + } } |
