def test_findLargest_aabcdefghijklmnopqrstuvwxyz(): assert_equal( locate.findLargest("AABCDEFGHIJKLMNOPQRSTUVWXYZ", palindrome.isPalindrome), "AA" )
def test_findLargest_example(): value = "GHDUFNEICJSODLFJGHFYDNDJSKDNCHFGEJDBDJEGFHCNDKYATRSMZPLOBSRQNSB" assert_equal( locate.findLargest(value, palindrome.isPalindrome), "KDNCHFGEJDBDJEGFHCNDK" )
def test_findLargest_abcdefghijklmnopo(): assert_equal( locate.findLargest("ABCDEFGHIJKLMNOPO", palindrome.isPalindrome), "OPO" )
def test_findLargest_abbaxyzzyx(): assert_equal( locate.findLargest("ABBAXYZZYX", palindrome.isPalindrome), "XYZZYX" )
def test_findLargest_empty(): assert_false( locate.findLargest("", palindrome.isPalindrome) )
def test_findLargest_dave(): assert_equal( locate.findLargest("DAVE", palindrome.isPalindrome), None )
def test_findLargest_abcba(): assert_equal( locate.findLargest("ABCBA", palindrome.isPalindrome), "ABCBA" )