This repository was archived by the owner on Apr 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +19
-18
lines changed Expand file tree Collapse file tree 3 files changed +19
-18
lines changed Original file line number Diff line number Diff line change @@ -371,7 +371,10 @@ mod tests {
371
371
fn test_y1f_2002 ( ) {
372
372
//allow slightly different result on x87
373
373
let res = y1f ( 2.0000002_f32 ) ;
374
- if cfg ! ( all( target_arch = "x86" , not( target_feature = "sse2" ) ) ) && ( res == -0.10703231_f32 ) { return } ;
374
+ if cfg ! ( all( target_arch = "x86" , not( target_feature = "sse2" ) ) ) && ( res == -0.10703231_f32 )
375
+ {
376
+ return ;
377
+ }
375
378
assert_eq ! ( res, -0.10703229_f32 ) ;
376
379
}
377
380
}
Original file line number Diff line number Diff line change 1
1
macro_rules! force_eval {
2
2
( $e: expr) => {
3
- unsafe {
4
- :: core:: ptr:: read_volatile( & $e)
5
- }
3
+ unsafe { :: core:: ptr:: read_volatile( & $e) }
6
4
} ;
7
5
}
8
6
Original file line number Diff line number Diff line change @@ -69,21 +69,21 @@ mod tests {
69
69
fn with_pi ( ) {
70
70
let ( s, c) = sincos ( core:: f64:: consts:: PI ) ;
71
71
assert ! (
72
- ( s - 0.0 ) . abs( ) < TOLERANCE ,
73
- "|{} - {}| = {} >= {}" ,
74
- s,
75
- 0.0 ,
76
- ( s - 0.0 ) . abs( ) ,
77
- TOLERANCE
78
- ) ;
72
+ ( s - 0.0 ) . abs( ) < TOLERANCE ,
73
+ "|{} - {}| = {} >= {}" ,
74
+ s,
75
+ 0.0 ,
76
+ ( s - 0.0 ) . abs( ) ,
77
+ TOLERANCE
78
+ ) ;
79
79
assert ! (
80
- ( c + 1.0 ) . abs( ) < TOLERANCE ,
81
- "|{} + {}| = {} >= {}" ,
82
- c,
83
- 1.0 ,
84
- ( s + 1.0 ) . abs( ) ,
85
- TOLERANCE
86
- ) ;
80
+ ( c + 1.0 ) . abs( ) < TOLERANCE ,
81
+ "|{} + {}| = {} >= {}" ,
82
+ c,
83
+ 1.0 ,
84
+ ( s + 1.0 ) . abs( ) ,
85
+ TOLERANCE
86
+ ) ;
87
87
}
88
88
89
89
#[ test]
You can’t perform that action at this time.
0 commit comments