Skip to content

Commit 8547902

Browse files
change upper bound of approx test to 64 because it's a nicer number
1 parent 48ccd00 commit 8547902

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

tests/pass/float.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use std::fmt::{Debug, Display, LowerHex};
1212
use std::hint::black_box;
1313
use std::{f32, f64};
1414

15-
// accept up to 54ULP (16ULP for host floats and 16ULP for artificial error and 22 for rounding errors)
16-
const ALLOWED_ULP_DIFF: i128 = 54;
15+
// accept up to 64ULP (16ULP for host floats and 16ULP for artificial error and 32 for any rounding errors)
16+
const ALLOWED_ULP_DIFF: i128 = 64;
1717

1818
macro_rules! assert_approx_eq {
1919
($a:expr, $b:expr) => {{

tests/pass/float.stderr

-8
This file was deleted.

0 commit comments

Comments
 (0)