예제 #1
0
def test_countletters():
    assert AnalyseText.count_letters('This is a test', string = False) == 11
예제 #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
예제 #3
0
def test_countwords():
    assert AnalyseText.count_words('This is a test', string = False) == 4