]> git.lizzy.rs Git - rust.git/commitdiff
Re-enable all num tests on WASM
authorSmitty <me@smitop.com>
Fri, 15 Jan 2021 21:58:44 +0000 (16:58 -0500)
committerSmitty <me@smitop.com>
Fri, 15 Jan 2021 21:58:44 +0000 (16:58 -0500)
This was partially done by #47365, but a few tests
were missed in that PR.

library/core/tests/num/dec2flt/mod.rs
library/core/tests/num/dec2flt/rawfp.rs
library/core/tests/num/flt2dec/strategy/dragon.rs
library/core/tests/num/flt2dec/strategy/grisu.rs

index 1c172f49c279c726fc73a69968ec5fdf6fd1521e..32f05d1def50a961f2cde604b7271c6e967c09ec 100644 (file)
@@ -21,7 +21,6 @@ macro_rules! test_literal {
     }};
 }
 
-#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
 #[test]
 fn ordinary() {
     test_literal!(1.0);
@@ -38,7 +37,6 @@ 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
index c098b9c2ba27ddf1618fe74d97f1b8913e12ef62..34a37209d99f8846a31d2bb3ea328999cd340611 100644 (file)
@@ -81,7 +81,6 @@ 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;
@@ -117,7 +116,6 @@ 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 {
@@ -128,7 +126,6 @@ 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;
index 3d985c6796b16908e96c71ba32f9523f9d622282..fc2e724a20c7c64a1781f88dd46452f5fbe3e498 100644 (file)
@@ -13,7 +13,6 @@ 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);
index 7e6c8add3339d2d0052fc800fbbb7ce5e2eeda61..b59a3b9b72d3b3eb4c0606fe42ace3ea05e73cee 100644 (file)
@@ -33,7 +33,6 @@ 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);