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

Method testDegrees

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

Source from the content-addressed store, hash-verified

500 self.assertTrue(math.isnan(math.cosh(NAN)))
501
502 def testDegrees(self):
503 self.assertRaises(TypeError, math.degrees)
504 self.ftest('degrees(pi)', math.degrees(math.pi), 180.0)
505 self.ftest('degrees(pi/2)', math.degrees(math.pi/2), 90.0)
506 self.ftest('degrees(-pi/4)', math.degrees(-math.pi/4), -45.0)
507 self.ftest('degrees(0)', math.degrees(0), 0)
508
509 def testExp(self):
510 self.assertRaises(TypeError, math.exp)

Callers

nothing calls this directly

Calls 2

ftestMethod · 0.95
assertRaisesMethod · 0.45

Tested by

no test coverage detected