only run min/max test on wasm/llvm; dev backend doesn't implement them

This commit is contained in:
Folkert 2022-05-10 18:29:26 +02:00
parent 029fbb372b
commit a9bee7f564
No known key found for this signature in database
GPG Key ID: 1F17F6FFD112B97C

View File

@ -591,8 +591,12 @@ fn f64_round() {
fn f64_abs() {
assert_evals_to!("Num.abs -4.7", 4.7, f64);
assert_evals_to!("Num.abs 5.8", 5.8, f64);
assert_evals_to!("Num.abs Num.maxF64", f64::MAX, f64);
assert_evals_to!("Num.abs Num.minF64", f64::MIN.abs(), f64);
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
{
assert_evals_to!("Num.abs Num.maxF64", f64::MAX, f64);
assert_evals_to!("Num.abs Num.minF64", f64::MAX, f64);
}
}
#[test]