Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.

Commit ac4526d

Browse files
committed
these should be exact
1 parent 58c80a0 commit ac4526d

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

src/tools/miri/tests/pass/float.rs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -606,14 +606,14 @@ fn rounding() {
606606
assert_eq((-1.5f64).round_ties_even(), -2.0f64);
607607
assert_eq((-1.7f64).round_ties_even(), -2.0f64);
608608

609-
assert_approx_eq!(3.8f32.floor(), 3.0f32);
610-
assert_approx_eq!((-1.1f64).floor(), -2.0f64);
609+
assert_eq!(3.8f32.floor(), 3.0f32);
610+
assert_eq!((-1.1f64).floor(), -2.0f64);
611611

612-
assert_approx_eq!((-2.3f32).ceil(), -2.0f32);
613-
assert_approx_eq!(3.8f64.ceil(), 4.0f64);
612+
assert_eq!((-2.3f32).ceil(), -2.0f32);
613+
assert_eq!(3.8f64.ceil(), 4.0f64);
614614

615-
assert_approx_eq!(0.1f32.trunc(), 0.0f32);
616-
assert_approx_eq!((-0.1f64).trunc(), 0.0f64);
615+
assert_eq!(0.1f32.trunc(), 0.0f32);
616+
assert_eq!((-0.1f64).trunc(), 0.0f64);
617617

618618
assert_eq!(3.3_f32.round(), 3.0);
619619
assert_eq!(2.5_f32.round(), 3.0);
@@ -622,9 +622,9 @@ fn rounding() {
622622
}
623623

624624
fn mul_add() {
625-
assert_approx_eq!(3.0f32.mul_add(2.0f32, 5.0f32), 11.0);
625+
assert_eq!(3.0f32.mul_add(2.0f32, 5.0f32), 11.0);
626626
assert_eq!(0.0f32.mul_add(-2.0, f32::consts::E), f32::consts::E);
627-
assert_approx_eq!(3.0f64.mul_add(2.0, 5.0), 11.0);
627+
assert_eq!(3.0f64.mul_add(2.0, 5.0), 11.0);
628628
assert_eq!(0.0f64.mul_add(-2.0f64, f64::consts::E), f64::consts::E);
629629
assert_eq!((-3.2f32).mul_add(2.4, f32::NEG_INFINITY), f32::NEG_INFINITY);
630630
assert_eq!((-3.2f64).mul_add(2.4, f64::NEG_INFINITY), f64::NEG_INFINITY);

0 commit comments

Comments
 (0)