示例#1
0
    def test_searchVertical_4_6414210(self):
        listLength = 4
        expectedResult = 6514520

        actualResult = Problem011.searchVertical(testGrid, listLength)

        self.assertEqual(actualResult, expectedResult)
示例#2
0
    def test_searchDiagonalTLBR_4_9507960(self):
        listLength = 4
        expectedResult = 16194745

        actualResult = Problem011.searchDiagonalTLBR(testGrid, listLength)

        self.assertEqual(actualResult, expectedResult)
示例#3
0
    def test_searchDiagonalBLTR_4_9585576(self):
        listLength = 4
        expectedResult = 24468444

        actualResult = Problem011.searchDiagonalBLTR(testGrid, listLength)

        self.assertEqual(actualResult, expectedResult)
示例#4
0
    def test_searchHorizontal_4_9507960(self):
        listLength = 4
        expectedResult = 9507960

        actualResult = Problem011.searchHorizontal(testGrid, listLength)

        self.assertEqual(actualResult, expectedResult)