Lines Matching refs:getargs_f
356 from _testcapi import getargs_f
357 self.assertEqual(getargs_f(4.25), 4.25)
358 self.assertEqual(getargs_f(4), 4.0)
359 self.assertRaises(TypeError, getargs_f, 4.25+0j)
360 self.assertEqual(getargs_f(Float()), 4.25)
361 self.assertEqual(getargs_f(FloatSubclass(7.5)), 7.5)
362 self.assertEqual(getargs_f(FloatSubclass2(7.5)), 7.5)
363 self.assertRaises(TypeError, getargs_f, BadFloat())
365 self.assertEqual(getargs_f(BadFloat2()), 4.25)
366 self.assertEqual(getargs_f(BadFloat3(7.5)), 7.5)
369 self.assertEqual(getargs_f(x), x)
371 self.assertEqual(getargs_f(DBL_MAX), INF)
372 self.assertEqual(getargs_f(-DBL_MAX), -INF)
374 self.assertEqualWithSign(getargs_f(DBL_MIN), 0.0)
375 self.assertEqualWithSign(getargs_f(-DBL_MIN), -0.0)
376 self.assertEqualWithSign(getargs_f(0.0), 0.0)
377 self.assertEqualWithSign(getargs_f(-0.0), -0.0)
378 r = getargs_f(NAN)
383 from _testcapi import getargs_f
384 self.assertEqual(getargs_f(3.40282356e38), FLT_MAX)
385 self.assertEqual(getargs_f(-3.40282356e38), -FLT_MAX)