Skip to content

Commit 37da6a5

Browse files
committed
Fix test sum/product implementation
1 parent 805ce1a commit 37da6a5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/core_simd/tests/ops_macros.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -480,7 +480,7 @@ macro_rules! impl_float_tests {
480480
test_helpers::test_1(&|x| {
481481
test_helpers::prop_assert_biteq! (
482482
Vector::<LANES>::from_array(x).sum(),
483-
x.iter().copied().fold(0 as Scalar, <Scalar as core::ops::Add>::add),
483+
x.iter().sum(),
484484
);
485485
Ok(())
486486
});
@@ -490,7 +490,7 @@ macro_rules! impl_float_tests {
490490
test_helpers::test_1(&|x| {
491491
test_helpers::prop_assert_biteq! (
492492
Vector::<LANES>::from_array(x).product(),
493-
x.iter().copied().fold(1. as Scalar, <Scalar as core::ops::Mul>::mul),
493+
x.iter().product(),
494494
);
495495
Ok(())
496496
});

0 commit comments

Comments
 (0)