示例#1
0
 def test_1(self):
     self.assertEquals(greatest_common_factor([16, 4, 8]), 4,
                       "Should return 4")
示例#2
0
 def test_7(self):
     self.assertEquals(greatest_common_factor([171, 45, 297, 342]), 9,
                       "Should return 9")
示例#3
0
 def test_case(self):
     self.assertEquals(greatest_common_factor([1, 8]), 1, "Should return 1")
示例#4
0
 def test_6(self):
     self.assertEquals(greatest_common_factor([91, 143, 234, 52]), 13,
                       "Should return 13")
示例#5
0
 def test_5(self):
     self.assertEquals(greatest_common_factor([32, 96, 120, 80]), 8,
                       "Should return 8")
示例#6
0
 def test_4(self):
     self.assertEquals(greatest_common_factor([48, 99, 18]), 3,
                       "Should return 3")
示例#7
0
 def test_3(self):
     self.assertEquals(greatest_common_factor([468, 156, 806, 312, 442]),
                       26, "Should return 26")
示例#8
0
 def test_2(self):
     self.assertEquals(greatest_common_factor([46, 14, 20, 88]), 2,
                       "Should return 2")