예제 #1
0
 def test_ten_one(self):
     self.assertEqual(task1_10.ten("ok"), "ok")
예제 #2
0
 def test_ten_empty(self):
     self.assertEqual(task1_10.ten(""), "")
예제 #3
0
 def test_ten_latin(self):
     self.assertEqual(
         task1_10.ten(
             "hello world and practice makes perfect and hello world again"
         ), "again and hello makes perfect practice world")
예제 #4
0
 def test_ten_ukrainian(self):
     self.assertEqual(task1_10.ten("Київ Чернівці Черкаси Чернівці"),
                      "Київ Черкаси Чернівці")
예제 #5
0
 def test_ten_first_letter_equal(self):
     self.assertEqual(task1_10.ten("six seven"), "seven six")
예제 #6
0
 def test_ten_duplicates(self):
     self.assertEqual(task1_10.ten("hi hi mam mam"), "hi mam")