Пример #1
0
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)
Пример #2
0
def test__splitter_of_words__0(string):
    assert(is_generator(utils.splitter_of_words(string)))
Пример #3
0
def test__splitter_of_words__0(string):
    assert (is_generator(utils.splitter_of_words(string)))
Пример #4
0
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)