D | test_complex.py | 25 def assertAlmostEqual(self, a, b): member in ComplexTest 28 unittest.TestCase.assertAlmostEqual(self, a.real, b.real) 29 unittest.TestCase.assertAlmostEqual(self, a.imag, b.imag) 31 unittest.TestCase.assertAlmostEqual(self, a.real, b) 32 unittest.TestCase.assertAlmostEqual(self, a.imag, 0.) 35 unittest.TestCase.assertAlmostEqual(self, a, b.real) 36 unittest.TestCase.assertAlmostEqual(self, 0., b.imag) 38 unittest.TestCase.assertAlmostEqual(self, a, b) 111 self.assertAlmostEqual(complex.__truediv__(2+0j, 1+1j), 1-1j) 213 self.assertAlmostEqual(pow(1+1j, 0+0j), 1.0) [all …]
|