Skip to content

Commit

Permalink
Re-enable all num tests on WASM
Browse files Browse the repository at this point in the history
This was partially done by rust-lang#47365, but a few tests
were missed in that PR.
  • Loading branch information
syvb committed Jan 15, 2021
1 parent bc39d4d commit e10555c
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 7 deletions.
2 changes: 0 additions & 2 deletions library/core/tests/num/dec2flt/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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
Expand Down
3 changes: 0 additions & 3 deletions library/core/tests/num/dec2flt/rawfp.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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 {
Expand All @@ -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;
Expand Down
1 change: 0 additions & 1 deletion library/core/tests/num/flt2dec/strategy/dragon.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
1 change: 0 additions & 1 deletion library/core/tests/num/flt2dec/strategy/grisu.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit e10555c

Please sign in to comment.