Skip to content

Commit 3cf970f

Browse files
committed
Fix test sum/product implementation
1 parent 3fae09b commit 3cf970f

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
@@ -483,7 +483,7 @@ macro_rules! impl_float_tests {
483483
test_helpers::test_1(&|x| {
484484
test_helpers::prop_assert_biteq! (
485485
Vector::<LANES>::from_array(x).sum(),
486-
x.iter().copied().fold(0 as Scalar, <Scalar as core::ops::Add>::add),
486+
x.iter().sum(),
487487
);
488488
Ok(())
489489
});
@@ -493,7 +493,7 @@ macro_rules! impl_float_tests {
493493
test_helpers::test_1(&|x| {
494494
test_helpers::prop_assert_biteq! (
495495
Vector::<LANES>::from_array(x).product(),
496-
x.iter().copied().fold(1. as Scalar, <Scalar as core::ops::Mul>::mul),
496+
x.iter().product(),
497497
);
498498
Ok(())
499499
});

0 commit comments

Comments
 (0)