Пример #1
0
 def test_ellipsis(self):
     words = ['Whatever', '...', 'Hey', 'there', '.']
     joined = snippets._join_words(words)
     assert joined == 'Whatever... Hey there.'
Пример #2
0
 def test_mixed(self):
     words = ['I', 'paid', '$24', '.', 'So', 'there', '!']
     joined = snippets._join_words(words)
     assert joined == 'I paid $24. So there!'
Пример #3
0
 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."
Пример #4
0
 def test_exclamation(self):
     words = ['Go', 'away', '!']
     joined = snippets._join_words(words)
     assert joined == "Go away!"
Пример #5
0
 def test_question(self):
     words = ['how', 'are', 'you', '?']
     joined = snippets._join_words(words)
     assert joined == 'how are you?'
Пример #6
0
 def test_simple(self):
     words = ['How', 'are', 'you']
     joined = snippets._join_words(words)
     assert joined == 'How are you'