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

Method testAcosh

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

Source from the content-addressed store, hash-verified

275 self.assertTrue(math.isnan(math.acos(NAN)))
276
277 def testAcosh(self):
278 self.assertRaises(TypeError, math.acosh)
279 self.ftest('acosh(1)', math.acosh(1), 0)
280 self.ftest('acosh(2)', math.acosh(2), 1.3169578969248168)
281 self.assertRaises(ValueError, math.acosh, 0)
282 self.assertRaises(ValueError, math.acosh, -1)
283 self.assertEqual(math.acosh(INF), INF)
284 self.assertRaises(ValueError, math.acosh, NINF)
285 self.assertTrue(math.isnan(math.acosh(NAN)))
286
287 def testAsin(self):
288 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