This was partially done by #47365, but a few tests
were missed in that PR.
-#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
#[test]
fn ordinary() {
test_literal!(1.0);
#[test]
fn ordinary() {
test_literal!(1.0);
test_literal!(2.2250738585072014e-308);
}
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
#[test]
fn special_code_paths() {
test_literal!(36893488147419103229.0); // 2^65 - 3, triggers half-to-even with even significand
assert_eq!(rounded.k, adjusted_k + 1);
}
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;
#[test]
fn prev_float_monotonic() {
let mut x = 1.0;
assert_eq!(next_float(f64::INFINITY), f64::INFINITY);
}
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 {
#[test]
fn next_prev_identity() {
for &x in &SOME_FLOATS {
-#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
#[test]
fn next_float_monotonic() {
let mut x = 0.49999999999999;
#[test]
fn next_float_monotonic() {
let mut x = 0.49999999999999;
-#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
#[test]
fn shortest_sanity_test() {
f64_shortest_sanity_test(format_shortest);
#[test]
fn shortest_sanity_test() {
f64_shortest_sanity_test(format_shortest);
-#[cfg_attr(all(target_arch = "wasm32", target_os = "emscripten"), ignore)] // issue 42630
#[test]
fn shortest_sanity_test() {
f64_shortest_sanity_test(format_shortest);
#[test]
fn shortest_sanity_test() {
f64_shortest_sanity_test(format_shortest);