kyu_7.the_first_non_repeated_character_in_string package

Submodules

kyu_7.the_first_non_repeated_character_in_string.first_non_repeated module

Solution for -> The First Non Repeated Character In A String.

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

kyu_7.the_first_non_repeated_character_in_string.first_non_repeated.first_non_repeated(s: str) str | None[source]

Return the first non-repeated character in the given string.

Parameters:

s

Returns:

kyu_7.the_first_non_repeated_character_in_string.test_first_non_repeated module

Test for -> The First Non-Repeated Character In A String.

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

class kyu_7.the_first_non_repeated_character_in_string.test_first_non_repeated.FirstNonRepeatedTestCase(methodName='runTest')[source]

Bases: TestCase

Testing first_non_repeated function.

_classSetupFailed = False
_class_cleanups = []
test_first_non_repeated = None
test_first_non_repeated_0_test(**kw)

Testing first_non_repeated function with various test data [with s=’test’, expected=’e’].

Returns:

test_first_non_repeated_1_teeter(**kw)

Testing first_non_repeated function with various test data [with s=’teeter’, expected=’r’].

Returns:

test_first_non_repeated_2_1122321235121222(**kw)

Testing first_non_repeated function with various test data [with s=’1122321235121222’, expected=’5’].

Returns:

test_first_non_repeated_3_uqqmsmtnrhjooknjtmllkpuphirsi(**kw)

Testing first_non_repeated function with various test data [with s=’uqqmsmtnrhjooknjtmllkpuphirsi’, expected=None].

Returns:

test_first_non_repeated_4_ogmhrsoqiklqfmhgnpjsrikmnlpfj(**kw)

Testing first_non_repeated function with various test data [with s=’ogmhrsoqiklqfmhgnpjsrikmnlpfj’, expected=None].

Returns:

test_first_non_repeated_5_knioolrpnutskmqmhqtriipjjushl(**kw)

Testing first_non_repeated function with various test data [with s=’knioolrpnutskmqmhqtriipjjushl’, expected=None].

Returns:

test_first_non_repeated_6_oirfqjmsrmnhlqgghplpsonkyfijk(**kw)

Testing first_non_repeated function with various test data [with s=’oirfqjmsrmnhlqgghplpsonkyfijk’, expected=’y’].

Returns:

Module contents

The First Non Repeated Character In A String.