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

Method testConstants

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

Source from the content-addressed store, hash-verified

225 self.fail("{}: {}".format(name, failure))
226
227 def testConstants(self):
228 # Ref: Abramowitz & Stegun (Dover, 1965)
229 self.ftest('pi', math.pi, 3.141592653589793238462643)
230 self.ftest('e', math.e, 2.718281828459045235360287)
231 self.assertEqual(math.tau, 2*math.pi)
232
233 def testAcos(self):
234 self.assertRaises(TypeError, math.acos)

Callers

nothing calls this directly

Calls 2

ftestMethod · 0.95
assertEqualMethod · 0.45

Tested by

no test coverage detected