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

Method assertCEqual

Lib/test/test_cmath.py:480–483  ·  view source on GitHub ↗
(self, a, b)

Source from the content-addressed store, hash-verified

478 self.assertRaises(OverflowError, abs, complex(1.4e308, 1.4e308))
479
480 def assertCEqual(self, a, b):
481 eps = 1E-7
482 if abs(a.real - b[0]) > eps or abs(a.imag - b[1]) > eps:
483 self.fail((a ,b))
484
485 def test_rect(self):
486 self.assertCEqual(rect(0, 0), (0, 0))

Callers 1

test_rectMethod · 0.95

Calls 2

absFunction · 0.50
failMethod · 0.45

Tested by

no test coverage detected