Skip to content

Commit

Permalink
change upper bound of approx test to 64 because it's a nicer number
Browse files Browse the repository at this point in the history
  • Loading branch information
LorrensP-2158466 committed Feb 5, 2025
1 parent 58d8e4f commit 058dd60
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 10 deletions.
4 changes: 2 additions & 2 deletions tests/pass/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ use std::fmt::{Debug, Display, LowerHex};
use std::hint::black_box;
use std::{f32, f64};

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

macro_rules! assert_approx_eq {
($a:expr, $b:expr) => {{
Expand Down
8 changes: 0 additions & 8 deletions tests/pass/float.stderr

This file was deleted.

0 comments on commit 058dd60

Please sign in to comment.