def test_positives(self): result = Multiplicador.multiplica(self, 12345, 98765) self.assertEqual(result[0], 12345 * 98765)
def test_error(self): with self.assertRaises(ValueError): Multiplicador.multiplica(self, -1.2345, 'ads')
def test_zero(self): result = Multiplicador.multiplica(self, -1.2345, 0) self.assertEqual(result[0], -1.2345 * 0)
def test_decimal2(self): result = Multiplicador.multiplica(self, -1.2345, -0.98765) self.assertEqual(result[0], -1.2345 * -0.98765)
def test_decimal1(self): result = Multiplicador.multiplica(self, -123.45, -98765) self.assertEqual(result[0], -123.45 * -98765)
def test_negative(self): result = Multiplicador.multiplica(self, -12345, -98765) self.assertEqual(result[0], -12345 * -98765)