mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
dev backend cannot compare floats
This commit is contained in:
parent
b132b1fa89
commit
a60a49bce6
1 changed files with 7 additions and 2 deletions
|
@ -1141,13 +1141,18 @@ fn gen_is_negative_f64() {
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm", feature = "gen-dev"))]
|
||||||
fn gen_is_zero_f64() {
|
fn gen_is_zero_i64() {
|
||||||
assert_evals_to!("Num.isZero 0", true, bool);
|
assert_evals_to!("Num.isZero 0", true, bool);
|
||||||
assert_evals_to!("Num.isZero 0_0", true, bool);
|
assert_evals_to!("Num.isZero 0_0", true, bool);
|
||||||
assert_evals_to!("Num.isZero 0.0", true, bool);
|
|
||||||
assert_evals_to!("Num.isZero 1", false, bool);
|
assert_evals_to!("Num.isZero 1", false, bool);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[test]
|
||||||
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
|
fn gen_is_zero_f64() {
|
||||||
|
assert_evals_to!("Num.isZero 0.0", true, bool);
|
||||||
|
}
|
||||||
|
|
||||||
#[test]
|
#[test]
|
||||||
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
#[cfg(any(feature = "gen-llvm", feature = "gen-wasm"))]
|
||||||
fn gen_is_odd() {
|
fn gen_is_odd() {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue