示例#1
0
 def MCD(self, m, n):
     return c.MCD(m, n)
示例#2
0
 def test_MCD_integers_positive(self):
     result = c.MCD(6, 3)
     self.assertEqual(result, 3)
示例#3
0
 def test_MCD_integers_positive_prime(self):
     result = c.MCD(7, 3)
     self.assertEqual(result, 1)
示例#4
0
 def test_MCD_zero(self):
     result = c.MCD(0, 2)
     self.assertEqual(result, 2)
示例#5
0
 def test_MCD_zero2(self):
     result = c.MCD(2, 0)
     self.assertEqual(result, 2) 
示例#6
0
 def test_MCD_integers_neg_pos2(self):
     result = c.MCD(-10, 5)
     self.assertEqual(result, 5) 
示例#7
0
 def test_MCD_integers_neg_pos(self):
     result = c.MCD(-6, 2)
     self.assertEqual(result, 2) 
示例#8
0
 def test_MCD_integers_pos_neg2(self):
     result = c.MCD(10, -2)
     self.assertEqual(result, 2)  
示例#9
0
 def test_MCD_integers_negative_prime(self):
     result = c.MCD(-7, -2)
     self.assertEqual(result, 1)    
示例#10
0
 def test_MCD_integers_negative(self):
     result = c.MCD(-6, -2)
     self.assertEqual(result, 2)