Ejemplo n.º 1
0
 def test_smallest_multiple_that_is_divisible_by_1_is_1(self):
     self.assertEqual(smallest_multiple([1]), 1)
Ejemplo n.º 2
0
 def test_smallest_multiple_that_is_divisible_by_1_and_2_is_2(self):
     self.assertEqual(smallest_multiple([1, 2]), 2)
Ejemplo n.º 3
0
 def test_project_euler_input(self):
     self.assertEqual(smallest_multiple(range(1, 21)), 232792560)
Ejemplo n.º 4
0
 def test_smallest_multiple_that_is_divisible_by_1_through_10_is_2520(self):
     self.assertEqual(smallest_multiple(range(1, 11)), 2520)
Ejemplo n.º 5
0
 def test_smallest_multiple_that_is_divisible_by_3_4_6_and_8_is_60(self):
     self.assertEqual(smallest_multiple([3, 4, 6, 8]), 24)
Ejemplo n.º 6
0
 def test_smallest_multiple_that_is_divisible_by_1_through_6_is_60(self):
     self.assertEqual(smallest_multiple(range(1, 7)), 60)
Ejemplo n.º 7
0
 def test_smallest_multiple_that_is_divisible_by_1_through_3_is_6(self):
     self.assertEqual(smallest_multiple([1, 2]), 2)