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

Method testAtanh

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

Source from the content-addressed store, hash-verified

314 self.assertTrue(math.isnan(math.atan(NAN)))
315
316 def testAtanh(self):
317 self.assertRaises(TypeError, math.atan)
318 self.ftest('atanh(0)', math.atanh(0), 0)
319 self.ftest('atanh(0.5)', math.atanh(0.5), 0.54930614433405489)
320 self.ftest('atanh(-0.5)', math.atanh(-0.5), -0.54930614433405489)
321 self.assertRaises(ValueError, math.atanh, 1)
322 self.assertRaises(ValueError, math.atanh, -1)
323 self.assertRaises(ValueError, math.atanh, INF)
324 self.assertRaises(ValueError, math.atanh, NINF)
325 self.assertTrue(math.isnan(math.atanh(NAN)))
326
327 def testAtan2(self):
328 self.assertRaises(TypeError, math.atan2)

Callers

nothing calls this directly

Calls 3

ftestMethod · 0.95
assertTrueMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected