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

Method testAcosh

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

Source from the content-addressed store, hash-verified

242 self.assertTrue(math.isnan(math.acos(NAN)))
243
244 def testAcosh(self):
245 self.assertRaises(TypeError, math.acosh)
246 self.ftest('acosh(1)', math.acosh(1), 0)
247 self.ftest('acosh(2)', math.acosh(2), 1.3169578969248168)
248 self.assertRaises(ValueError, math.acosh, 0)
249 self.assertRaises(ValueError, math.acosh, -1)
250 self.assertEqual(math.acosh(INF), INF)
251 self.assertRaises(ValueError, math.acosh, NINF)
252 self.assertTrue(math.isnan(math.acosh(NAN)))
253
254 def testAsin(self):
255 self.assertRaises(TypeError, math.asin)

Callers

nothing calls this directly

Calls 4

ftestMethod · 0.95
assertTrueMethod · 0.80
assertRaisesMethod · 0.45
assertEqualMethod · 0.45

Tested by

no test coverage detected