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

Method do_symmetry_test

Lib/test/test_statistics.py:368–372  ·  view source on GitHub ↗
(self, a, b, tol, rel)

Source from the content-addressed store, hash-verified

366 self.do_symmetry_test(x, y, tol=0, rel=0)
367
368 def do_symmetry_test(self, a, b, tol, rel):
369 template = "approx_equal comparisons don't match for %r"
370 flag1 = approx_equal(a, b, tol, rel)
371 flag2 = approx_equal(b, a, tol, rel)
372 self.assertEqual(flag1, flag2, template.format((a, b, tol, rel)))
373
374
375class ApproxEqualExactTest(unittest.TestCase):

Callers 1

test_symmetryMethod · 0.95

Calls 3

approx_equalFunction · 0.85
assertEqualMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected