summaryrefslogtreecommitdiffstats
path: root/library/core/tests/iter/adapters/array_chunks.rs
diff options
context:
space:
mode:
Diffstat (limited to 'library/core/tests/iter/adapters/array_chunks.rs')
-rw-r--r--library/core/tests/iter/adapters/array_chunks.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/library/core/tests/iter/adapters/array_chunks.rs b/library/core/tests/iter/adapters/array_chunks.rs
index 4e9d89e1e..ef4a7e53b 100644
--- a/library/core/tests/iter/adapters/array_chunks.rs
+++ b/library/core/tests/iter/adapters/array_chunks.rs
@@ -139,7 +139,8 @@ fn test_iterator_array_chunks_fold() {
let result =
(0..10).map(|_| CountDrop::new(&count)).array_chunks::<3>().fold(0, |acc, _item| acc + 1);
assert_eq!(result, 3);
- assert_eq!(count.get(), 10);
+ // fold impls may or may not process the remainder
+ assert!(count.get() <= 10 && count.get() >= 9);
}
#[test]