コード例 #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'