Пример #1
0
 def test_string_with_longer_than_ten_character_word(self):
     self.assertEqual(["Avadakedav", "ra", "alohomora"],
                      split_string("Avadakedavra alohomora"))
Пример #2
0
 def test_short_words_long_string(self):
     self.assertEqual(["hi hi hi", "hi hi hi", "hi hi hi", "hi"],
                      split_string("hi hi hi hi hi hi hi hi hi hi"))
Пример #3
0
 def test_string_starting_with_ten_character_word(self):
     self.assertEqual(["disgusting", "what a", "food"],
                      split_string("disgusting what a food"))