kyu_5.simple_pig_latin package
Submodules
kyu_5.simple_pig_latin.pig_it module
Solution for -> Simple Pig Latin.
Created by Egor Kostan. GitHub: https://github.com/ikostan
kyu_5.simple_pig_latin.test_pig_it module
Test for -> Simple Pig Latin.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_5.simple_pig_latin.test_pig_it.PigItTestCase(methodName='runTest')[source]
Bases:
TestCaseTesting pig_it function.
- _classSetupFailed = False
- _class_cleanups = []
- test_pig_it = None
- test_pig_it_0_Pig_latin_is_cool(**kw)
Testing pig_it function [with text=’Pig latin is cool’, expected=’igPay atinlay siay oolcay’].
The function should mpve the first letter of each word to the end of it, then add “ay” to the end of the word. Leave punctuation marks untouched. :return:
- test_pig_it_1_This_is_my_string(**kw)
Testing pig_it function [with text=’This is my string’, expected=’hisTay siay ymay tringsay’].
The function should mpve the first letter of each word to the end of it, then add “ay” to the end of the word. Leave punctuation marks untouched. :return:
- test_pig_it_2_Hello_world_(**kw)
Testing pig_it function [with text=’Hello world !’, expected=’elloHay orldway !’].
The function should mpve the first letter of each word to the end of it, then add “ay” to the end of the word. Leave punctuation marks untouched. :return:
- test_pig_it_3_O_tempora_o_mores_(**kw)
Testing pig_it function [with text=’O tempora o mores !’, expected=’Oay emporatay oay oresmay !’].
The function should mpve the first letter of each word to the end of it, then add “ay” to the end of the word. Leave punctuation marks untouched. :return:
Module contents
Simple Pig Latin.