File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -662,7 +662,7 @@ fn test_gamma() {
662
662
assert_approx_eq ! ( 0.5f32 . gamma( ) , consts:: PI . sqrt( ) ) ;
663
663
assert_approx_eq ! ( ( -0.5f32 ) . gamma( ) , -2.0 * consts:: PI . sqrt( ) ) ;
664
664
assert_eq ! ( 0.0f32 . gamma( ) , f32 :: INFINITY ) ;
665
- assert_eq ! ( -0.0f32 . gamma( ) , f32 :: NEG_INFINITY ) ;
665
+ assert_eq ! ( ( -0.0f32 ) . gamma( ) , f32 :: NEG_INFINITY ) ;
666
666
assert ! ( ( -1.0f32 ) . gamma( ) . is_nan( ) ) ;
667
667
assert ! ( ( -2.0f32 ) . gamma( ) . is_nan( ) ) ;
668
668
assert ! ( f32 :: NAN . gamma( ) . is_nan( ) ) ;
Original file line number Diff line number Diff line change @@ -645,7 +645,7 @@ fn test_gamma() {
645
645
assert_approx_eq ! ( 0.5f64 . gamma( ) , consts:: PI . sqrt( ) ) ;
646
646
assert_approx_eq ! ( ( -0.5f64 ) . gamma( ) , -2.0 * consts:: PI . sqrt( ) ) ;
647
647
assert_eq ! ( 0.0f64 . gamma( ) , f64 :: INFINITY ) ;
648
- assert_eq ! ( -0.0f64 . gamma( ) , f64 :: NEG_INFINITY ) ;
648
+ assert_eq ! ( ( -0.0f64 ) . gamma( ) , f64 :: NEG_INFINITY ) ;
649
649
assert ! ( ( -1.0f64 ) . gamma( ) . is_nan( ) ) ;
650
650
assert ! ( ( -2.0f64 ) . gamma( ) . is_nan( ) ) ;
651
651
assert ! ( f64 :: NAN . gamma( ) . is_nan( ) ) ;
You can’t perform that action at this time.
0 commit comments