Apply formatting fixes from CI
This commit is contained in:
+4
-1
@@ -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
-3
@@ -1,8 +1,6 @@
|
||||
macro_rules! force_eval {
|
||||
($e:expr) => {
|
||||
unsafe {
|
||||
::core::ptr::read_volatile(&$e)
|
||||
}
|
||||
unsafe { ::core::ptr::read_volatile(&$e) }
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
+14
-14
@@ -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]
|
||||
|
||||
Reference in New Issue
Block a user