Пример #1
0
 def divide(self, m, n):
     return c.divide(m, n)
Пример #2
0
 def test_divide_integers_positive2(self):
     result = c.divide(7, 3)
     self.assertEqual(result, 2)
Пример #3
0
 def test_divide_zero(self):
     result = c.divide(0, 2)
     self.assertEqual(result, 0)
Пример #4
0
 def test_divide_integers_neg_pos2(self):
     result = c.divide(-7, 2)
     self.assertEqual(result, -3)
Пример #5
0
 def test_divide_integers_pos_neg2(self):
     result = c.divide(9, -2)
     self.assertEqual(result, -4)
Пример #6
0
 def test_divide_integers_negative2(self):
     result = c.divide(-7, -2)
     self.assertEqual(result, 3)