Add Num.round to dev backend

This commit is contained in:
Joshua Hoeflich 2021-08-15 17:50:07 -05:00
parent b25862a93b
commit 1c6ac84f2f
7 changed files with 589 additions and 564 deletions

View file

@ -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]