Ignore some failing test on wasm32-unknown-emscripten
See #42629 and #42630.
This commit is contained in:
@@ -33,6 +33,7 @@ macro_rules! test_literal {
|
||||
})
|
||||
}
|
||||
|
||||
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
|
||||
#[test]
|
||||
fn ordinary() {
|
||||
test_literal!(1.0);
|
||||
@@ -43,6 +44,7 @@ fn ordinary() {
|
||||
test_literal!(2.2250738585072014e-308);
|
||||
}
|
||||
|
||||
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
|
||||
#[test]
|
||||
fn special_code_paths() {
|
||||
test_literal!(36893488147419103229.0); // 2^65 - 3, triggers half-to-even with even significand
|
||||
|
||||
@@ -86,6 +86,7 @@ fn rounding_overflow() {
|
||||
assert_eq!(rounded.k, adjusted_k + 1);
|
||||
}
|
||||
|
||||
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
|
||||
#[test]
|
||||
fn prev_float_monotonic() {
|
||||
let mut x = 1.0;
|
||||
@@ -121,6 +122,7 @@ fn next_float_inf() {
|
||||
assert_eq!(next_float(f64::INFINITY), f64::INFINITY);
|
||||
}
|
||||
|
||||
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
|
||||
#[test]
|
||||
fn next_prev_identity() {
|
||||
for &x in &SOME_FLOATS {
|
||||
@@ -131,6 +133,7 @@ fn next_prev_identity() {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
|
||||
#[test]
|
||||
fn next_float_monotonic() {
|
||||
let mut x = 0.49999999999999;
|
||||
|
||||
@@ -24,6 +24,7 @@ fn test_mul_pow10() {
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
|
||||
#[test]
|
||||
fn shortest_sanity_test() {
|
||||
f64_shortest_sanity_test(format_shortest);
|
||||
|
||||
@@ -38,6 +38,7 @@ fn test_max_pow10_no_more_than() {
|
||||
}
|
||||
|
||||
|
||||
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
|
||||
#[test]
|
||||
fn shortest_sanity_test() {
|
||||
f64_shortest_sanity_test(format_shortest);
|
||||
|
||||
@@ -169,6 +169,7 @@ test_impl_from! { test_u16f64, u16, f64 }
|
||||
test_impl_from! { test_u32f64, u32, f64 }
|
||||
|
||||
// Float -> Float
|
||||
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
|
||||
#[test]
|
||||
fn test_f32f64() {
|
||||
use core::f32;
|
||||
|
||||
Reference in New Issue
Block a user