Пример #1
0
 def test_pig_latin(self):
     self.assertEqual(pig_latin.pig_latin_converter('andela'), 'andelaway')
     self.assertEqual(pig_latin.pig_latin_converter('category'),
                      'ategorycay')
     self.assertEqual(pig_latin.pig_latin_converter('trash'), 'ashtray')
Пример #2
0
	def test_with_consonant(self):
		actual = pig_latin.pig_latin_converter("happy")
		expected = "appyhay"
		self.assertEqual(expected, actual)
Пример #3
0
	def test_with_vowel2(self):
		actual = pig_latin.pig_latin_converter("inbox")
		expected = "inboxway"
		self.assertEqual(expected, actual)
Пример #4
0
	def test_with_vowel(self):
		actual = pig_latin.pig_latin_converter("egg")
		expected = "eggway"
		self.assertEqual(expected, actual)
Пример #5
0
	def test_with_consonants2(self):
		actual = pig_latin.pig_latin_converter("fly")
		expected = "flyay"
		self.assertEqual(expected, actual)
Пример #6
0
	def test_with_consonant2(self):
		actual = pig_latin.pig_latin_converter("duck")
		expected = "uckday"
		self.assertEqual(expected, actual)