mirror of
https://github.com/RustPython/RustPython.git
synced 2026-06-02 19:39:49 +09:00
Edit test_complex.py
ExpectedFailures added
This commit is contained in:
6
Lib/test/test_complex.py
vendored
6
Lib/test/test_complex.py
vendored
@@ -236,6 +236,8 @@ class ComplexTest(unittest.TestCase):
|
||||
for a, b in ZERO_DIVISION:
|
||||
self.assertRaises(TypeError, divmod, a, b)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_pow(self):
|
||||
self.assertAlmostEqual(pow(1+1j, 0+0j), 1.0)
|
||||
self.assertAlmostEqual(pow(0+0j, 2+0j), 0.0)
|
||||
@@ -570,12 +572,16 @@ class ComplexTest(unittest.TestCase):
|
||||
self.assertFloatsAreIdentical(z.real, x)
|
||||
self.assertFloatsAreIdentical(z.imag, y)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_constructor_negative_nans_from_string(self):
|
||||
self.assertEqual(copysign(1., complex("-nan").real), -1.)
|
||||
self.assertEqual(copysign(1., complex("-nanj").imag), -1.)
|
||||
self.assertEqual(copysign(1., complex("-nan-nanj").real), -1.)
|
||||
self.assertEqual(copysign(1., complex("-nan-nanj").imag), -1.)
|
||||
|
||||
# TODO: RUSTPYTHON
|
||||
@unittest.expectedFailure
|
||||
def test_underscores(self):
|
||||
# check underscores
|
||||
for lit in VALID_UNDERSCORE_LITERALS:
|
||||
|
||||
Reference in New Issue
Block a user