mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-29 06:44:46 +00:00
Add Num.round to dev backend
This commit is contained in:
parent
b25862a93b
commit
1c6ac84f2f
7 changed files with 589 additions and 564 deletions
|
@ -481,8 +481,12 @@ mod gen_num {
|
|||
}
|
||||
|
||||
#[test]
|
||||
fn f64_round_old() {
|
||||
fn f64_round() {
|
||||
assert_evals_to!("Num.round 3.6", 4, i64);
|
||||
assert_evals_to!("Num.round 3.4", 3, i64);
|
||||
assert_evals_to!("Num.round 2.5", 3, i64);
|
||||
assert_evals_to!("Num.round -2.3", -2, i64);
|
||||
assert_evals_to!("Num.round -2.5", -3, i64);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue