Пример #1
0
 def testPosMulNeg(self):
     self.assertEqual(task1(7, -7), -49)
Пример #2
0
 def testNegMulNeg(self):
     self.assertEqual(task1(-9,-9), 81)
Пример #3
0
 def testPosMulPos(self):
     self.assertEqual(task1(3, 7), 21)
Пример #4
0
 def testNegMulZero(self):
     self.assertEqual(task1(-7,0), 0, "-7 * 0 = 0")
Пример #5
0
 def testNegMulPos(self):
     self.assertEqual(task1(-5, 3), -15, "-5 * 3 = -15")
Пример #6
0
 def testZeroMulNeg(self):
     self.assertEqual(task1(0, -8), 0)
Пример #7
0
 def testZeroMulPos(self):
     self.assertEqual(task1(0, 3), 0)
Пример #8
0
 def testPosMulZero(self):
     self.assertEqual(task1(6, 0), 0)