Skip to content

Commit e10555c

Browse files
committed
Re-enable all num tests on WASM
This was partially done by #47365, but a few tests were missed in that PR.
1 parent bc39d4d commit e10555c

File tree

4 files changed

+0
-7
lines changed

4 files changed

+0
-7
lines changed

Diff for: library/core/tests/num/dec2flt/mod.rs

-2
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ macro_rules! test_literal {
2121
}};
2222
}
2323

24-
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
2524
#[test]
2625
fn ordinary() {
2726
test_literal!(1.0);
@@ -38,7 +37,6 @@ fn ordinary() {
3837
test_literal!(2.2250738585072014e-308);
3938
}
4039

41-
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
4240
#[test]
4341
fn special_code_paths() {
4442
test_literal!(36893488147419103229.0); // 2^65 - 3, triggers half-to-even with even significand

Diff for: library/core/tests/num/dec2flt/rawfp.rs

-3
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,6 @@ fn rounding_overflow() {
8181
assert_eq!(rounded.k, adjusted_k + 1);
8282
}
8383

84-
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
8584
#[test]
8685
fn prev_float_monotonic() {
8786
let mut x = 1.0;
@@ -117,7 +116,6 @@ fn next_float_inf() {
117116
assert_eq!(next_float(f64::INFINITY), f64::INFINITY);
118117
}
119118

120-
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
121119
#[test]
122120
fn next_prev_identity() {
123121
for &x in &SOME_FLOATS {
@@ -128,7 +126,6 @@ fn next_prev_identity() {
128126
}
129127
}
130128

131-
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
132129
#[test]
133130
fn next_float_monotonic() {
134131
let mut x = 0.49999999999999;

Diff for: library/core/tests/num/flt2dec/strategy/dragon.rs

-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ fn test_mul_pow10() {
1313
}
1414
}
1515

16-
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
1716
#[test]
1817
fn shortest_sanity_test() {
1918
f64_shortest_sanity_test(format_shortest);

Diff for: library/core/tests/num/flt2dec/strategy/grisu.rs

-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,6 @@ fn test_max_pow10_no_more_than() {
3333
}
3434
}
3535

36-
#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
3736
#[test]
3837
fn shortest_sanity_test() {
3938
f64_shortest_sanity_test(format_shortest);

0 commit comments

Comments
 (0)