Exemplo n.º 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)
Exemplo n.º 2
0
def test__splitter_of_words__0(string):
    assert(is_generator(utils.splitter_of_words(string)))
Exemplo n.º 3
0
def test__splitter_of_words__0(string):
    assert (is_generator(utils.splitter_of_words(string)))
Exemplo n.º 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)