Esempio n. 1
0
 def test_ten_one(self):
     self.assertEqual(task1_10.ten("ok"), "ok")
Esempio n. 2
0
 def test_ten_empty(self):
     self.assertEqual(task1_10.ten(""), "")
Esempio n. 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")
Esempio n. 4
0
 def test_ten_ukrainian(self):
     self.assertEqual(task1_10.ten("Київ Чернівці Черкаси Чернівці"),
                      "Київ Черкаси Чернівці")
Esempio n. 5
0
 def test_ten_first_letter_equal(self):
     self.assertEqual(task1_10.ten("six seven"), "seven six")
Esempio n. 6
0
 def test_ten_duplicates(self):
     self.assertEqual(task1_10.ten("hi hi mam mam"), "hi mam")