def test_rfc2549(): correct = top_word_solution(nicolas) assert top_word(rfc2549) == correct
def test_nicolas(): correct = top_word_solution(nicolas) assert top_word(nicolas) == correct
def test_single(): assert top_word("word") == "word"
def test_double(): assert top_word("foo bar foo") == "foo"
def test_empty(): assert top_word("") is None