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

Method testAsin

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

Source from the content-addressed store, hash-verified

285 self.assertTrue(math.isnan(math.acosh(NAN)))
286
287 def testAsin(self):
288 self.assertRaises(TypeError, math.asin)
289 self.ftest('asin(-1)', math.asin(-1), -math.pi/2)
290 self.ftest('asin(0)', math.asin(0), 0)
291 self.ftest('asin(1)', math.asin(1), math.pi/2)
292 self.assertRaises(ValueError, math.asin, INF)
293 self.assertRaises(ValueError, math.asin, NINF)
294 self.assertRaises(ValueError, math.asin, 1 + eps)
295 self.assertRaises(ValueError, math.asin, -1 - eps)
296 self.assertTrue(math.isnan(math.asin(NAN)))
297
298 def testAsinh(self):
299 self.assertRaises(TypeError, math.asinh)

Callers

nothing calls this directly

Calls 3

ftestMethod · 0.95
assertTrueMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected