We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ebafe58 commit 587c7d8Copy full SHA for 587c7d8
src/libcore/tests/iter.rs
@@ -1687,7 +1687,7 @@ fn test_take_try_folds() {
1687
1688
#[test]
1689
fn test_flat_map_try_folds() {
1690
- let f = &|acc, x| i32::checked_add(2*acc, x);
+ let f = &|acc, x| i32::checked_add(acc*2/3, x);
1691
let mr = &|x| (5*x)..(5*x + 5);
1692
assert_eq!((0..10).flat_map(mr).try_fold(7, f), (0..50).try_fold(7, f));
1693
assert_eq!((0..10).flat_map(mr).try_rfold(7, f), (0..50).try_rfold(7, f));
0 commit comments