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')
def test_with_consonant(self): actual = pig_latin.pig_latin_converter("happy") expected = "appyhay" self.assertEqual(expected, actual)
def test_with_vowel2(self): actual = pig_latin.pig_latin_converter("inbox") expected = "inboxway" self.assertEqual(expected, actual)
def test_with_vowel(self): actual = pig_latin.pig_latin_converter("egg") expected = "eggway" self.assertEqual(expected, actual)
def test_with_consonants2(self): actual = pig_latin.pig_latin_converter("fly") expected = "flyay" self.assertEqual(expected, actual)
def test_with_consonant2(self): actual = pig_latin.pig_latin_converter("duck") expected = "uckday" self.assertEqual(expected, actual)