def gcd(self, m, n):
     return calculator.gcd(m, n)
 def test_gcd_integers_negative(self):
     result = c.gcd(-32, -12)
     self.assertEqual(result, 4)
 def gcd(self, m, n):
     return c.gcd(m, n)
Example #4
0
 def test_gcd_integers2(self):
     result = c.gcd(36, 12)
     self.assertEqual(result, 12)
 def test_gcd_integers_positive(self):
     result = c.gcd(32, 12)
     self.assertEqual(result, 4)
Example #6
0
 def test_gcd_integers(self):
     result = c.gcd(6, 3)
     self.assertEqual(result, 3)
Example #7
0
 def test_gcd_zero_integers2(self):
     result = c.gcd(11, 0)
     self.assertEqual(result, 11)
Example #8
0
 def test_gcd_zero_integers(self):
     result = c.gcd(0, 22)
     self.assertEqual(result, 22)
Example #9
0
 def test_gcd_integers4(self):
     result = c.gcd(33, 22)
     self.assertEqual(result, 11)
Example #10
0
 def test_gcd_integers3(self):
     result = c.gcd(48, 32)
     self.assertEqual(result, 16)