mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 23:31:12 +00:00
only run min/max test on wasm/llvm; dev backend doesn't implement them
This commit is contained in:
parent
029fbb372b
commit
a9bee7f564
1 changed files with 6 additions and 2 deletions
|
@ -591,8 +591,12 @@ fn f64_round() {
|
||||||
fn f64_abs() {
|
fn f64_abs() {
|
||||||
assert_evals_to!("Num.abs -4.7", 4.7, f64);
|
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 5.8", 5.8, 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.maxF64", f64::MAX, f64);
|
||||||
assert_evals_to!("Num.abs Num.minF64", f64::MIN.abs(), f64);
|
assert_evals_to!("Num.abs Num.minF64", f64::MAX, f64);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue