Lines Matching refs:copy_sign
1490 d = Decimal(1).copy_sign(Decimal(-2))
1491 self.assertEqual(Decimal(1).copy_sign(-2), d)
1492 self.assertRaises(TypeError, Decimal(1).copy_sign, '-2')
3027 d = c.copy_sign(Decimal(1), Decimal(-2))
3028 self.assertEqual(c.copy_sign(1, -2), d)
3029 self.assertEqual(c.copy_sign(Decimal(1), -2), d)
3030 self.assertEqual(c.copy_sign(1, Decimal(-2)), d)
3031 self.assertRaises(TypeError, c.copy_sign, '1', -2)
3032 self.assertRaises(TypeError, c.copy_sign, 1, '-2')
4362 z = y.copy_sign(Decimal(1))
4498 y = c.copy_sign(x, 1)
5116 self.assertRaises(TypeError, c.copy_sign, Decimal(1), "x", "y")