kyu_8.is_it_a_palindrome package

Submodules

kyu_8.is_it_a_palindrome.is_palindrome module

Solution for -> Is it a palindrome?.

Created by Egor Kostan. GitHub: https://github.com/ikostan

kyu_8.is_it_a_palindrome.is_palindrome.is_palindrome(s: str) bool[source]

Palindrome testing function.

Write function isPalindrome that checks if a given string (case-insensitive) is a palindrome. :param s: str :return: bool

kyu_8.is_it_a_palindrome.test_is_palindrome module

Test for -> Is it a palindrome?.

Created by Egor Kostan. GitHub: https://github.com/ikostan

class kyu_8.is_it_a_palindrome.test_is_palindrome.IsPalindromeTestCase(methodName='runTest')[source]

Bases: TestCase

Testing is_palindrome function.

_classSetupFailed = False
_class_cleanups = []
test_is_palindrome = None
test_is_palindrome_00_a(**kw)

Testing is_palindrome function with various test inputs [with string=’a’, expected=True].

The function should check if a given string (case-insensitive) is a palindrome. :return:

test_is_palindrome_01_aba(**kw)

Testing is_palindrome function with various test inputs [with string=’aba’, expected=True].

The function should check if a given string (case-insensitive) is a palindrome. :return:

test_is_palindrome_02_Abba(**kw)

Testing is_palindrome function with various test inputs [with string=’Abba’, expected=True].

The function should check if a given string (case-insensitive) is a palindrome. :return:

test_is_palindrome_03_malam(**kw)

Testing is_palindrome function with various test inputs [with string=’malam’, expected=True].

The function should check if a given string (case-insensitive) is a palindrome. :return:

test_is_palindrome_04_walter(**kw)

Testing is_palindrome function with various test inputs [with string=’walter’, expected=False].

The function should check if a given string (case-insensitive) is a palindrome. :return:

test_is_palindrome_05_kodok(**kw)

Testing is_palindrome function with various test inputs [with string=’kodok’, expected=True].

The function should check if a given string (case-insensitive) is a palindrome. :return:

test_is_palindrome_06_Kasue(**kw)

Testing is_palindrome function with various test inputs [with string=’Kasue’, expected=False].

The function should check if a given string (case-insensitive) is a palindrome. :return:

test_is_palindrome_07_NdjXglGnYGKhQtuAcxNWFwVRZZDMrFmiOPMZsvr(**kw)

Testing is_palindrome function with various test inputs [with string=’NdjXglGnYGKhQtuAcxNWFwVRZZDMrFmiOPMZsvr’, expected=False].

The function should check if a given string (case-insensitive) is a palindrome. :return:

test_is_palindrome_08_XqmUTaAmrrYitgNwkCwaWdFYsEhfIeOohViba(**kw)

Testing is_palindrome function with various test inputs [with string=’XqmUTaAmrrYitgNwkCwaWdFYsEhfIeOohViba’, expected=False].

The function should check if a given string (case-insensitive) is a palindrome. :return:

test_is_palindrome_09_ZtItThFBUPCSCbtcUfDwXzyajhRIWioUHpVzN(**kw)

Testing is_palindrome function with various test inputs [with string=’ZtItThFBUPCSCbtcUfDwXzyajhRIWioUHpVzN’, expected=False].

The function should check if a given string (case-insensitive) is a palindrome. :return:

test_is_palindrome_10_XqNeuBjbshHwqjoUNGHhVRolqxWRRWYYbN(**kw)

Testing is_palindrome function with various test inputs [with string=’XqNeuBjbshHwqjoUNGHhVRolqxWRRWYYbN’, expected=False].

The function should check if a given string (case-insensitive) is a palindrome. :return:

Module contents

Is it a palindrome.