Skip to content

Commit 4c11c6b

Browse files
committed
Add test for f32::round and f64::round
1 parent 3118b9f commit 4c11c6b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

tests/run-pass/intrinsics-math.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,9 @@ pub fn main() {
8585
assert_approx_eq!(1.0f32.tan(), 1.557408f32);
8686
assert_approx_eq!(1.0f64.tan(), 1.557408f64);
8787

88+
assert_eq!(3.3_f32.round(), 3.0);
89+
assert_eq!(3.3_f64.round(), 3.0);
90+
8891
extern {
8992
fn ldexp(x: f64, n: i32) -> f64;
9093
}

0 commit comments

Comments
 (0)