kyu_5.where_my_anagrams_at package
Submodules
kyu_5.where_my_anagrams_at.anagrams module
Solution for -> Where my anagrams at?.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- kyu_5.where_my_anagrams_at.anagrams.anagrams(word, words) list[source]
Anagrams function.
A function that will find all the anagrams of a word from a list. You will be given two inputs a word and an array with words. You should return an array of all the anagrams or an empty array if there are none. :param word: str :param words: :return: list
kyu_5.where_my_anagrams_at.test_anagrams module
Test suite for -> Where my anagrams at?.
Created by Egor Kostan. GitHub: https://github.com/ikostan
- class kyu_5.where_my_anagrams_at.test_anagrams.AnagramsTestCase(methodName='runTest')[source]
Bases:
TestCaseTesting anagrams function.
- _classSetupFailed = False
- _class_cleanups = []
- test_anagrams = None
- test_anagrams_0_abba(**kw)
Testing anagrams function with various test data [with string=’abba’, array=[‘aabb’, ‘abcd’, ‘bbaa’, ‘dada’], expected=[‘aabb’, ‘bbaa’]].
Test a function that will find all the anagrams of a word from a list. You will be given two inputs a word and an array with words. You should return an array of all the anagrams or an empty array if there are none. :return:
- test_anagrams_1_racer(**kw)
Testing anagrams function with various test data [with string=’racer’, array=[‘crazer’, ‘carer’, ‘racar’, ‘caers’, ‘racer’], expected=[‘carer’, ‘racer’]].
Test a function that will find all the anagrams of a word from a list. You will be given two inputs a word and an array with words. You should return an array of all the anagrams or an empty array if there are none. :return:
Module contents
Where my anagrams at.