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)
示例#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)
示例#6
0
 def test_gcd_integers(self):
     result = c.gcd(6, 3)
     self.assertEqual(result, 3)
示例#7
0
 def test_gcd_zero_integers2(self):
     result = c.gcd(11, 0)
     self.assertEqual(result, 11)
示例#8
0
 def test_gcd_zero_integers(self):
     result = c.gcd(0, 22)
     self.assertEqual(result, 22)
示例#9
0
 def test_gcd_integers4(self):
     result = c.gcd(33, 22)
     self.assertEqual(result, 11)
示例#10
0
 def test_gcd_integers3(self):
     result = c.gcd(48, 32)
     self.assertEqual(result, 16)