mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
only run min/max test on wasm/llvm; dev backend doesn't implement them
This commit is contained in:
parent
029fbb372b
commit
a9bee7f564
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user