mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Address review
This commit is contained in:
@@ -1557,7 +1557,6 @@ class MathTests(unittest.TestCase):
|
||||
# def test_nan_constant(self):
|
||||
# self.assertTrue(math.isnan(math.nan))
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@requires_IEEE_754
|
||||
def test_inf_constant(self):
|
||||
self.assertTrue(math.isinf(math.inf))
|
||||
|
||||
@@ -388,9 +388,7 @@ fn math_fsum(iter: PyIterable<IntoPyFloat>, vm: &VirtualMachine) -> PyResult<f64
|
||||
for i in 0..partials.len() {
|
||||
let mut y: f64 = partials[i];
|
||||
if x.abs() < y.abs() {
|
||||
let t = x;
|
||||
x = y;
|
||||
y = t;
|
||||
std::mem::swap(&mut x, &mut y);
|
||||
}
|
||||
// Rounded `x+y` is stored in `hi` with round-off stored in
|
||||
// `lo`. Together `hi+lo` are exactly equal to `x+y`.
|
||||
|
||||
Reference in New Issue
Block a user