diff options
| author | Caleb Zulawski <caleb.zulawski@gmail.com> | 2021-06-13 20:11:01 +0000 |
|---|---|---|
| committer | Caleb Zulawski <caleb.zulawski@gmail.com> | 2021-06-13 20:11:01 +0000 |
| commit | 7b66032ed511229410b0879d384b06cfcacf0538 (patch) | |
| tree | c75a7c39d893eb16e612b24ad056094e270f6a6a | |
| parent | f102de7c8b2f59bcdc8f27dfe42a94725c91fd36 (diff) | |
| download | rust-7b66032ed511229410b0879d384b06cfcacf0538.tar.gz rust-7b66032ed511229410b0879d384b06cfcacf0538.zip | |
Fix test typo
| -rw-r--r-- | crates/core_simd/tests/ops_macros.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/core_simd/tests/ops_macros.rs b/crates/core_simd/tests/ops_macros.rs index 4057f33d447..cb39e737705 100644 --- a/crates/core_simd/tests/ops_macros.rs +++ b/crates/core_simd/tests/ops_macros.rs @@ -533,8 +533,8 @@ macro_rules! impl_float_tests { // Special case where both values are zero let p_zero = Vector::<LANES>::splat(0.); let n_zero = Vector::<LANES>::splat(-0.); - assert!(p_zero.min(n_zero).to_array().iter().all(|x| *x == 0.)); - assert!(n_zero.min(p_zero).to_array().iter().all(|x| *x == 0.)); + assert!(p_zero.max(n_zero).to_array().iter().all(|x| *x == 0.)); + assert!(n_zero.max(p_zero).to_array().iter().all(|x| *x == 0.)); } fn clamp<const LANES: usize>() { |
