kyu_6.first_character_that_repeats package

Submodules

kyu_6.first_character_that_repeats.first_character_that_repeats module

kyu_6.first_character_that_repeats.first_character_that_repeats.first_dup(s)[source]

Find the first character that repeats in a String and return that character. :param s: :return:

kyu_6.first_character_that_repeats.test_first_character_that_repeats module

class kyu_6.first_character_that_repeats.test_first_character_that_repeats.FirstDupTestCase(methodName='runTest')[source]

Bases: unittest.case.TestCase

Testing first_dup function

Find the first character that repeats in a String and return that character.

test_first_alpha_only()[source]

Test string with alphabet chars only :return:

test_first_dup_mixed()[source]

Test string with mixed type of chars :return:

test_first_dup_none()[source]

Test string with no duplicate chars :return:

test_first_no_alpha()[source]

Test string with no alphabet chars :return:

test_first_space()[source]

Repeating char is a space :return:

Module contents