From 9894f660fce4931a42c55f0fbebaba7d6a5e52fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Dominykas=20Dja=C4=8Denko?= Date: Wed, 19 May 2021 01:33:26 -0700 Subject: [PATCH] fix(iterators5): balance test fixture It was easy to write the filter in `count_iterator` incorrectly, as there are as many `Complete`d entries as there are other entries. This means both `.filter(|v| v == &value)` and `.filter(|v| != &value)` give the same result. This balances out so the number is different and the mistake will be caught appropriately. --- exercises/standard_library_types/iterators5.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/exercises/standard_library_types/iterators5.rs b/exercises/standard_library_types/iterators5.rs index d8d44537..6f1218d6 100644 --- a/exercises/standard_library_types/iterators5.rs +++ b/exercises/standard_library_types/iterators5.rs @@ -102,6 +102,7 @@ mod tests { map.insert(String::from("arc1"), Some); map.insert(String::from("as_ref_mut"), None); map.insert(String::from("from_str"), None); + map.insert(String::from("using_as"), None); map }