Skip to content

Commit 5bf9e6f

Browse files
committed
test: Fix float imprecision error on intrinsics-math
1 parent 674b638 commit 5bf9e6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/run-pass/intrinsics-math.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ fn main() {
5757
assert(exp2f32(10f32) == 1024f32);
5858
assert(exp2f64(50f64) == 1125899906842624f64);
5959

60-
assert(logf32(f32::consts::e) == 1f32);
60+
assert(fabsf32(logf32(f32::consts::e) - 1f32) < 0.000001f32);
6161
assert(logf64(1f64) == 0f64);
6262

6363
assert(log10f32(10f32) == 1f32);

0 commit comments

Comments
 (0)