kyu_8.alternating_case package

Submodules

kyu_8.alternating_case.alternating_case module

altERnaTIng cAsE <=> ALTerNAtiNG CaSe.

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

kyu_8.alternating_case.alternating_case.to_alternating_case(string: str) str[source]

Alternating case.

Each lowercase letter becomes uppercase and each uppercase letter becomes lowercase. :param string: str :return: str

kyu_8.alternating_case.test_alternating_case module

Testing for altERnaTIng cAsE <=> ALTerNAtiNG CaSe.

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

class kyu_8.alternating_case.test_alternating_case.AlternatingCaseTestCase(methodName='runTest')[source]

Bases: TestCase

Testing to_alternating_case function.

_classSetupFailed = False
_class_cleanups = []
test_alternating_case = None
test_alternating_case_0_hello_world(**kw)

Testing to_alternating_case function with various test data [with string=’hello world’, expected=’HELLO WORLD’].

Returns:

test_alternating_case_1_HELLO_WORLD(**kw)

Testing to_alternating_case function with various test data [with string=’HELLO WORLD’, expected=’hello world’].

Returns:

test_alternating_case_2_HeLLo_WoRLD(**kw)

Testing to_alternating_case function with various test data [with string=’HeLLo WoRLD’, expected=’hEllO wOrld’].

Returns:

test_alternating_case_3_hello_WORLD(**kw)

Testing to_alternating_case function with various test data [with string=’hello WORLD’, expected=’HELLO world’].

Returns:

test_alternating_case_4_12345(**kw)

Testing to_alternating_case function with various test data [with string=’12345’, expected=’12345’].

Returns:

test_alternating_case_5_1a2b3c4d5e(**kw)

Testing to_alternating_case function with various test data [with string=’1a2b3c4d5e’, expected=’1A2B3C4D5E’].

Returns:

test_alternating_case_6_String_prototype_toAlternatingCase(**kw)

Testing to_alternating_case function with various test data [with string=’String.prototype.toAlternatingCase’, expected=’sTRING.PROTOTYPE.TOaLTERNATINGcASE’].

Returns:

test_alternating_case_7_Hello_World(**kw)

Testing to_alternating_case function with various test data [with string=’Hello World’, expected=’hELLO wORLD’].

Returns:

test_alternating_case_8_altERnaTIng_cAsE(**kw)

Testing to_alternating_case function with various test data [with string=’altERnaTIng cAsE’, expected=’ALTerNAtiNG CaSe’].

Returns:

Module contents

altERnaTIng cAsE <=> ALTerNAtiNG CaSe.