Lines Matching refs:getargs_f
338 from _testcapi import getargs_f
339 self.assertEqual(getargs_f(4.25), 4.25)
340 self.assertEqual(getargs_f(4), 4.0)
341 self.assertRaises(TypeError, getargs_f, 4.25+0j)
342 self.assertEqual(getargs_f(Float()), 4.25)
343 self.assertEqual(getargs_f(FloatSubclass(7.5)), 7.5)
344 self.assertEqual(getargs_f(FloatSubclass2(7.5)), 7.5)
345 self.assertRaises(TypeError, getargs_f, BadFloat())
346 self.assertEqual(getargs_f(BadFloat2()), 4.25)
347 self.assertEqual(getargs_f(BadFloat3(7.5)), 7.5)
350 self.assertEqual(getargs_f(x), x)
352 self.assertEqual(getargs_f(DBL_MAX), INF)
353 self.assertEqual(getargs_f(-DBL_MAX), -INF)
355 self.assertEqualWithSign(getargs_f(DBL_MIN), 0.0)
356 self.assertEqualWithSign(getargs_f(-DBL_MIN), -0.0)
357 self.assertEqualWithSign(getargs_f(0.0), 0.0)
358 self.assertEqualWithSign(getargs_f(-0.0), -0.0)
359 r = getargs_f(NAN)