Lines Matching refs:assertAlmostEqual
154 self.assertAlmostEqual(cmath.pi, pi_expected, places=9,
156 self.assertAlmostEqual(cmath.e, e_expected, places=9,
465 self.assertAlmostEqual(phase(0), 0.)
466 self.assertAlmostEqual(phase(1.), 0.)
467 self.assertAlmostEqual(phase(-1.), pi)
468 self.assertAlmostEqual(phase(-1.+1E-300j), pi)
469 self.assertAlmostEqual(phase(-1.-1E-300j), -pi)
470 self.assertAlmostEqual(phase(1j), pi/2)
471 self.assertAlmostEqual(phase(-1j), -pi/2)
480 self.assertAlmostEqual(phase(complex(-INF, -0.0)), -pi)
481 self.assertAlmostEqual(phase(complex(-INF, -2.3)), -pi)
482 self.assertAlmostEqual(phase(complex(-INF, -INF)), -0.75*pi)
483 self.assertAlmostEqual(phase(complex(-2.3, -INF)), -pi/2)
484 self.assertAlmostEqual(phase(complex(-0.0, -INF)), -pi/2)
485 self.assertAlmostEqual(phase(complex(0.0, -INF)), -pi/2)
486 self.assertAlmostEqual(phase(complex(2.3, -INF)), -pi/2)
487 self.assertAlmostEqual(phase(complex(INF, -INF)), -pi/4)
492 self.assertAlmostEqual(phase(complex(INF, INF)), pi/4)
493 self.assertAlmostEqual(phase(complex(2.3, INF)), pi/2)
494 self.assertAlmostEqual(phase(complex(0.0, INF)), pi/2)
495 self.assertAlmostEqual(phase(complex(-0.0, INF)), pi/2)
496 self.assertAlmostEqual(phase(complex(-2.3, INF)), pi/2)
497 self.assertAlmostEqual(phase(complex(-INF, INF)), 0.75*pi)
498 self.assertAlmostEqual(phase(complex(-INF, 2.3)), pi)
499 self.assertAlmostEqual(phase(complex(-INF, 0.0)), pi)