def test__splitter_of_words__1(string, length, unique): tokens = list(utils.splitter_of_words(string)) assert (len(tokens) == length) assert (len(set(tokens)) == unique)
def test__splitter_of_words__0(string): assert(is_generator(utils.splitter_of_words(string)))
def test__splitter_of_words__0(string): assert (is_generator(utils.splitter_of_words(string)))
def test__splitter_of_words__1(string, length, unique): tokens = list(utils.splitter_of_words(string)) assert(len(tokens) == length) assert(len(set(tokens)) == unique)