From 102d354b105c4f259e32b93a46f9d2d9000ff34e Mon Sep 17 00:00:00 2001 From: "Junhong.kim" Date: Mon, 30 Oct 2017 17:21:53 +0900 Subject: [PATCH] update pig-latin test case --- exercises/pig-latin/pig_latin_test.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/exercises/pig-latin/pig_latin_test.py b/exercises/pig-latin/pig_latin_test.py index 9fb5be9f829..26aec5ec21b 100644 --- a/exercises/pig-latin/pig_latin_test.py +++ b/exercises/pig-latin/pig_latin_test.py @@ -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") @@ -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")