Exemplo n.º 1
0
    def test_smallestMultiple(self):
        values = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
        expectedResult = 2520

        actualResult = Problem005.smallestMultipleFactors(values)

        for x in values:
            self.assertEqual(actualResult % x, 0)
        self.assertEqual(actualResult, expectedResult)
Exemplo n.º 2
0
    def test_smallestMultiple(self):
        values = [1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20]
        expectedResult = 232792560

        actualResult = Problem005.smallestMultipleFactors(values)

        for x in values:
            self.assertEqual(actualResult % x, 0)
        self.assertEqual(actualResult, expectedResult)