(expected: f64, actual: f64, msg: &str)
| 134 | } |
| 135 | |
| 136 | fn assert_f64_bits_eq(expected: f64, actual: f64, msg: &str) { |
| 137 | assert_eq!( |
| 138 | expected.to_bits(), |
| 139 | actual.to_bits(), |
| 140 | "{}: expected {:?} (bits: {:x}), got {:?} (bits: {:x})", |
| 141 | msg, |
| 142 | expected, |
| 143 | expected.to_bits(), |
| 144 | actual, |
| 145 | actual.to_bits() |
| 146 | ); |
| 147 | } |
| 148 | |
| 149 | #[test] |
| 150 | fn test_conversion_positive_zero() { |
no outgoing calls