Lines Matching refs:getargs_D
384 from _testcapi import getargs_D
385 self.assertEqual(getargs_D(4.25+0.5j), 4.25+0.5j)
386 self.assertEqual(getargs_D(4.25), 4.25+0j)
387 self.assertEqual(getargs_D(4), 4.0+0j)
388 self.assertEqual(getargs_D(Complex()), 4.25+0.5j)
389 self.assertEqual(getargs_D(ComplexSubclass(7.5+0.25j)), 7.5+0.25j)
390 self.assertEqual(getargs_D(ComplexSubclass2(7.5+0.25j)), 7.5+0.25j)
391 self.assertRaises(TypeError, getargs_D, BadComplex())
392 self.assertEqual(getargs_D(BadComplex2()), 4.25+0.5j)
393 self.assertEqual(getargs_D(BadComplex3(7.5+0.25j)), 7.5+0.25j)
397 self.assertEqual(getargs_D(c), c)
399 self.assertEqual(getargs_D(c), c)
400 self.assertEqualWithSign(getargs_D(complex(0.0, 1.0)).real, 0.0)
401 self.assertEqualWithSign(getargs_D(complex(-0.0, 1.0)).real, -0.0)
402 self.assertEqualWithSign(getargs_D(complex(1.0, 0.0)).imag, 0.0)
403 self.assertEqualWithSign(getargs_D(complex(1.0, -0.0)).imag, -0.0)