Exemplo n.º 1
0
def test_countletters():
    assert AnalyseText.count_letters('This is a test', string = False) == 11
Exemplo n.º 2
0
def test_findwords():
    assert AnalyseText.find_word('is', 'This is a test', string = False) == 1
    assert AnalyseText.find_word('not', 'This is a test', string = False) == 0
Exemplo n.º 3
0
def test_countwords():
    assert AnalyseText.count_words('This is a test', string = False) == 4