kyu_6.permute_a_palindrome package

Submodules

kyu_6.permute_a_palindrome.permute_a_palindrome module

Solution for -> Permute a Palindrome.

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

kyu_6.permute_a_palindrome.permute_a_palindrome.permute_a_palindrome(string: str) bool[source]

Permute a Palindrome.

A function that check whether the permutation of an input string is a palindrome. :param string: :return:

kyu_6.permute_a_palindrome.test_permute_a_palindrome module

Test for -> Permute a Palindrome.

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

class kyu_6.permute_a_palindrome.test_permute_a_palindrome.PermutePalindromeTestCase(methodName='runTest')[source]

Bases: TestCase

Testing permute_a_palindrome function.

_classSetupFailed = False
_class_cleanups = []
test_permute_a_palindrome_empty_string()[source]

Testing permute_a_palindrome function with empty string.

Returns:

test_permute_a_palindrome_negative()[source]

Negative testing permute_a_palindrome function.

Returns:

test_permute_a_palindrome_positive()[source]

Testing permute_a_palindrome function with various test data.

Returns:

Module contents

Permute a Palindrome.