Пример #1
0
def test_findLargest_aabcdefghijklmnopqrstuvwxyz():
	assert_equal( locate.findLargest("AABCDEFGHIJKLMNOPQRSTUVWXYZ", palindrome.isPalindrome), "AA" )
Пример #2
0
def test_findLargest_example():
	value = "GHDUFNEICJSODLFJGHFYDNDJSKDNCHFGEJDBDJEGFHCNDKYATRSMZPLOBSRQNSB"
	assert_equal( locate.findLargest(value, palindrome.isPalindrome), "KDNCHFGEJDBDJEGFHCNDK" )
Пример #3
0
def test_findLargest_abcdefghijklmnopo():
	assert_equal( locate.findLargest("ABCDEFGHIJKLMNOPO", palindrome.isPalindrome), "OPO" )
Пример #4
0
def test_findLargest_abbaxyzzyx():
	assert_equal( locate.findLargest("ABBAXYZZYX", palindrome.isPalindrome), "XYZZYX" )
Пример #5
0
def test_findLargest_empty():
	assert_false( locate.findLargest("", palindrome.isPalindrome) )
Пример #6
0
def test_findLargest_dave():
	assert_equal( locate.findLargest("DAVE", palindrome.isPalindrome), None )
Пример #7
0
def test_findLargest_abcba():
	assert_equal( locate.findLargest("ABCBA", palindrome.isPalindrome), "ABCBA" )