def test_ellipsis(self): words = ['Whatever', '...', 'Hey', 'there', '.'] joined = snippets._join_words(words) assert joined == 'Whatever... Hey there.'
def test_mixed(self): words = ['I', 'paid', '$24', '.', 'So', 'there', '!'] joined = snippets._join_words(words) assert joined == 'I paid $24. So there!'
def test_multiple_marks(self): words = ['Go', 'away', '!', 'I', "don't", 'like', 'you', '.'] joined = snippets._join_words(words) assert joined == "Go away! I don't like you."
def test_exclamation(self): words = ['Go', 'away', '!'] joined = snippets._join_words(words) assert joined == "Go away!"
def test_question(self): words = ['how', 'are', 'you', '?'] joined = snippets._join_words(words) assert joined == 'how are you?'
def test_simple(self): words = ['How', 'are', 'you'] joined = snippets._join_words(words) assert joined == 'How are you'