예제 #1
0
def test_autocorrect_word6():
    assert rb.autocorrect_word("evalueate", tot_words_dict)[0] == "evaluate"
예제 #2
0
def test_autocorrect_word5():
    assert rb.autocorrect_word("texxxxt", tot_words_dict)[0] == "text"
예제 #3
0
def test_autocorrect_word4():
    assert rb.autocorrect_word("on lion", tot_words_dict)[0] == "online"
예제 #4
0
def test_autocorrect_word3():
    assert rb.autocorrect_word("yotbe", tot_words_dict)[0] == "youtube"
예제 #5
0
def test_autocorrect_word2():
    assert rb.autocorrect_word("mosicss", tot_words_dict)[0] == "music"
예제 #6
0
def test_autocorrect_word1():
    assert rb.autocorrect_word("mozfirefox", tot_words_dict)[0] == "firefox"