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

Method testRadians

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

Source from the content-addressed store, hash-verified

1753 #self.assertEqual(1.**0, 1)
1754
1755 def testRadians(self):
1756 self.assertRaises(TypeError, math.radians)
1757 self.ftest('radians(180)', math.radians(180), math.pi)
1758 self.ftest('radians(90)', math.radians(90), math.pi/2)
1759 self.ftest('radians(-45)', math.radians(-45), -math.pi/4)
1760 self.ftest('radians(0)', math.radians(0), 0)
1761
1762 @requires_IEEE_754
1763 def testRemainder(self):

Callers

nothing calls this directly

Calls 3

ftestMethod · 0.95
radiansMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected