kyu_6.replace_with_alphabet_position package
Submodules
kyu_6.replace_with_alphabet_position.solution module
Solution for -> Replace With Alphabet Position.
Created by Egor Kostan. GitHub: https://github.com/ikostan
kyu_6.replace_with_alphabet_position.test_replace_with_alphabet_position module
Test for -> Replace With Alphabet Position.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_6.replace_with_alphabet_position.test_replace_with_alphabet_position.AlphabetPositionTestCase(methodName='runTest')[source]
Bases:
TestCaseTesting ‘alphabet_position’ function.
- _classSetupFailed = False
- _class_cleanups = []
- test_alphabet_position = None
- test_alphabet_position_0_The_sunset_sets_at_twelve_o_clock_(**kw)
Testing ‘alphabet_position’ function with various test data [with string=”The sunset sets at twelve o’ clock.”, expected=’20 8 5 19 21 14 19 5 20 19 5 20…20 23 5 12 22 5 15 3 12 15 3 11’].
Note: If anything in the text isn’t a letter, ignore it and don’t return it.. :return:
- test_alphabet_position_1_The_narwhal_bacons_at_midnight_(**kw)
Testing ‘alphabet_position’ function with various test data [with string=’The narwhal bacons at midnight.’, expected=’20 8 5 14 1 18 23 8 1 12 2 1 3 …5 14 19 1 20 13 9 4 14 9 7 8 20’].
Note: If anything in the text isn’t a letter, ignore it and don’t return it.. :return:
- test_alphabet_position_2_w_p_9lKIQ7v_2W_P_j4rwttJ_R_R_fg8_o_e1_aJeTHQv_KDAkZsKQq6j_ziwD_zT_P6_rEH_(**kw)
Testing ‘alphabet_position’ function with various test data [with string=’w'p[9lKIQ7v%]{2W-P)j4rwttJ:R:”…,KDAkZsKQq6j”ziwD[zT:P6%$rEH$^@’, expected=’23 16 12 11 9 17 22 23 16 10 18…17 10 26 9 23 4 26 20 16 18 5 8’].
Note: If anything in the text isn’t a letter, ignore it and don’t return it.. :return:
- test_alphabet_position_edge_cases = None
- test_alphabet_position_edge_cases_0_(**kw)
Testing ‘alphabet_position’ function with various edge cases [with string=’’, expected=’’].
Tests include empty strings, numbers, special characters, and mixed alphanumeric input. :return:
- test_alphabet_position_edge_cases_1_123(**kw)
Testing ‘alphabet_position’ function with various edge cases [with string=’123’, expected=’’].
Tests include empty strings, numbers, special characters, and mixed alphanumeric input. :return:
- test_alphabet_position_edge_cases_2__(**kw)
Testing ‘alphabet_position’ function with various edge cases [with string=’!@#$%^&*()’, expected=’’].
Tests include empty strings, numbers, special characters, and mixed alphanumeric input. :return:
- test_alphabet_position_edge_cases_3_a1_b(**kw)
Testing ‘alphabet_position’ function with various edge cases [with string=’a1!b’, expected=’1 2’].
Tests include empty strings, numbers, special characters, and mixed alphanumeric input. :return:
- test_alphabet_position_edge_cases_4_AbZ_(**kw)
Testing ‘alphabet_position’ function with various edge cases [with string=’AbZ!’, expected=’1 2 26’].
Tests include empty strings, numbers, special characters, and mixed alphanumeric input. :return:
- test_alphabet_position_edge_cases_5_Hello_World_(**kw)
Testing ‘alphabet_position’ function with various edge cases [with string=’Hello World!’, expected=’8 5 12 12 15 23 15 18 12 4’].
Tests include empty strings, numbers, special characters, and mixed alphanumeric input. :return:
- test_alphabet_position_edge_cases_6_TeStInG_123(**kw)
Testing ‘alphabet_position’ function with various edge cases [with string=’TeStInG 123’, expected=’20 5 19 20 9 14 7’].
Tests include empty strings, numbers, special characters, and mixed alphanumeric input. :return:
Module contents
Replace With Alphabet Position.