Apply formatting fixes from CI
This commit is contained in:
parent
f8c8c8b2fe
commit
8d91281fcc
3 changed files with 19 additions and 18 deletions
|
|
@ -371,7 +371,10 @@ mod tests {
|
|||
fn test_y1f_2002() {
|
||||
//allow slightly different result on x87
|
||||
let res = y1f(2.0000002_f32);
|
||||
if cfg!(all(target_arch = "x86", not(target_feature = "sse2"))) && (res == -0.10703231_f32) { return };
|
||||
if cfg!(all(target_arch = "x86", not(target_feature = "sse2"))) && (res == -0.10703231_f32)
|
||||
{
|
||||
return;
|
||||
}
|
||||
assert_eq!(res, -0.10703229_f32);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,8 +1,6 @@
|
|||
macro_rules! force_eval {
|
||||
($e:expr) => {
|
||||
unsafe {
|
||||
::core::ptr::read_volatile(&$e)
|
||||
}
|
||||
unsafe { ::core::ptr::read_volatile(&$e) }
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -69,21 +69,21 @@ mod tests {
|
|||
fn with_pi() {
|
||||
let (s, c) = sincos(core::f64::consts::PI);
|
||||
assert!(
|
||||
(s - 0.0).abs() < TOLERANCE,
|
||||
"|{} - {}| = {} >= {}",
|
||||
s,
|
||||
0.0,
|
||||
(s - 0.0).abs(),
|
||||
TOLERANCE
|
||||
);
|
||||
(s - 0.0).abs() < TOLERANCE,
|
||||
"|{} - {}| = {} >= {}",
|
||||
s,
|
||||
0.0,
|
||||
(s - 0.0).abs(),
|
||||
TOLERANCE
|
||||
);
|
||||
assert!(
|
||||
(c + 1.0).abs() < TOLERANCE,
|
||||
"|{} + {}| = {} >= {}",
|
||||
c,
|
||||
1.0,
|
||||
(s + 1.0).abs(),
|
||||
TOLERANCE
|
||||
);
|
||||
(c + 1.0).abs() < TOLERANCE,
|
||||
"|{} + {}| = {} >= {}",
|
||||
c,
|
||||
1.0,
|
||||
(s + 1.0).abs(),
|
||||
TOLERANCE
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue