Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update pig-latin test case #1077

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 9 additions & 3 deletions exercises/pig-latin/pig_latin_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@ def test_word_beginning_with_p(self):
def test_word_beginning_with_k(self):
self.assertEqual(translate("koala"), "oalakay")

def test_word_beginning_with_y(self):
self.assertEqual(translate("yellow"), "ellowyay")

def test_word_beginning_with_x(self):
self.assertEqual(translate("xenon"), "enonxay")

Expand Down Expand Up @@ -63,6 +60,15 @@ def test_word_beginning_with_yt(self):
def test_word_beginning_with_xr(self):
self.assertEqual(translate("xray"), "xrayay")

def test_word_beginning_with_y(self):
self.assertEqual(translate("yellow"), "ellowyay")

def test_word_beginning_with_y(self):
self.assertEqual(translate("rhythm"), "ythmrhay")

def test_word_beginning_with_y(self):
self.assertEqual(translate("my"), "ymay")

def test_a_whole_phrase(self):
self.assertEqual(translate("quick fast run"), "ickquay astfay unray")

Expand Down