MCPcopy Index your code
hub / github.com/RustPython/RustPython / test_rect

Method test_rect

Lib/test/test_cmath.py:485–490  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

483 self.fail((a ,b))
484
485 def test_rect(self):
486 self.assertCEqual(rect(0, 0), (0, 0))
487 self.assertCEqual(rect(1, 0), (1., 0))
488 self.assertCEqual(rect(1, -pi), (-1., 0))
489 self.assertCEqual(rect(1, pi/2), (0, 1.))
490 self.assertCEqual(rect(1, -pi/2), (0, -1.))
491
492 def test_isfinite(self):
493 real_vals = [float('-inf'), -2.3, -0.0,

Callers

nothing calls this directly

Calls 2

assertCEqualMethod · 0.95
rectFunction · 0.90

Tested by

no test coverage detected