Remove round, trunc tests
There are no platform intrinsics in the rustc for these functions yet, so this removes them as a distinct commit for later reversion.
This commit is contained in:
@@ -353,42 +353,6 @@ macro_rules! float_tests {
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
|
||||
fn round_odd_floats() {
|
||||
for v in slice_chunks(&C) {
|
||||
let expected = apply_unary_lanewise(v, <$scalar>::round);
|
||||
assert_biteq!(v.round(), expected);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
|
||||
fn round_mode() {
|
||||
assert_biteq!(core_simd::$vector::splat(1.5).round(), core_simd::$vector::splat(2.0));
|
||||
assert_biteq!(core_simd::$vector::splat(2.5).round(), core_simd::$vector::splat(3.0));
|
||||
assert_biteq!(core_simd::$vector::splat(-1.5).round(), core_simd::$vector::splat(-2.0));
|
||||
assert_biteq!(core_simd::$vector::splat(-2.5).round(), core_simd::$vector::splat(-3.0));
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
|
||||
fn trunc_odd_floats() {
|
||||
for v in slice_chunks(&C) {
|
||||
let expected = apply_unary_lanewise(v, <$scalar>::trunc);
|
||||
assert_biteq!(v.trunc(), expected);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
|
||||
fn fract_odd_floats() {
|
||||
for v in slice_chunks(&C) {
|
||||
let expected = apply_unary_lanewise(v, <$scalar>::fract);
|
||||
assert_biteq!(v.fract(), expected);
|
||||
}
|
||||
}
|
||||
|
||||
#[test]
|
||||
#[cfg_attr(target_arch = "wasm32", wasm_bindgen_test)]
|
||||
fn to_int_unchecked() {
|
||||
|
||||
Reference in New Issue
Block a user