MCPcopy Index your code
hub / github.com/python/cpython / check

Method check

Lib/test/test_cmath.py:367–370  ·  view source on GitHub ↗
(arg, expected)

Source from the content-addressed store, hash-verified

365
366 def check_polar(self, func):
367 def check(arg, expected):
368 got = func(arg)
369 for e, g in zip(expected, got):
370 self.rAssertAlmostEqual(e, g)
371 check(0, (0., 0.))
372 check(1, (1., 0.))
373 check(-1, (1., pi))

Callers

nothing calls this directly

Calls 2

rAssertAlmostEqualMethod · 0.95
funcFunction · 0.70

Tested by

no test coverage detected