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

Method testDegrees

Lib/test/test_math.py:484–489  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

482 self.assertTrue(math.isnan(math.cosh(NAN)))
483
484 def testDegrees(self):
485 self.assertRaises(TypeError, math.degrees)
486 self.ftest('degrees(pi)', math.degrees(math.pi), 180.0)
487 self.ftest('degrees(pi/2)', math.degrees(math.pi/2), 90.0)
488 self.ftest('degrees(-pi/4)', math.degrees(-math.pi/4), -45.0)
489 self.ftest('degrees(0)', math.degrees(0), 0)
490
491 def testExp(self):
492 self.assertRaises(TypeError, math.exp)

Callers

nothing calls this directly

Calls 3

ftestMethod · 0.95
degreesMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected