diff --git a/tests/test_core.rs b/tests/test_core.rs index cb2467cfb..adaa06e66 100644 --- a/tests/test_core.rs +++ b/tests/test_core.rs @@ -226,7 +226,7 @@ fn batching() { let pit = xs .iter() .cloned() - .batching(|it| it.next().and_then(|x| it.next().map(|y| (x, y)))); + .batching(|it| it.next_array::<2>().map(|[a, b]| (a, b))); it::assert_equal(pit, ys.iter().cloned()); }