

def test_neg(self, space):
    w_res = space.execute('return (-5.0)')
    assert (space.float_w(w_res) == (- 5.0))
    w_res = space.execute('return (-(4.0 + 1.0))')
    assert (space.float_w(w_res) == (- 5.0))

dataset/ETHPy150Open topazproject/topaz/tests/objects/test_floatobject.py TestFloatObject.test_neg/original