File tree 2 files changed +9
-1
lines changed
exercises/practice/pig-latin
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ description = "first letter and ay are moved to the end of words that start with
39
39
[bce94a7a-a94e-4e2b-80f4-b2bb02e40f71 ]
40
40
description = " first letter and ay are moved to the end of words that start with consonants -> word beginning with q without a following u"
41
41
42
+ [e59dbbe8-ccee-4619-a8e9-ce017489bfc0 ]
43
+ description = " first letter and ay are moved to the end of words that start with consonants -> word beginning with consonant and vowel containing qu"
44
+
42
45
[c01e049a-e3e2-451c-bf8e-e2abb7e438b8 ]
43
46
description = " some letter clusters are treated like a single consonant -> word beginning with ch"
44
47
Original file line number Diff line number Diff line change
1
+
1
2
Execute (word beginning with a):
2
3
let g:phrase = "apple"
3
4
let g:expected = "appleay"
@@ -27,7 +28,6 @@ Execute (word beginning with a vowel and followed by a qu):
27
28
let g:phrase = "equal"
28
29
let g:expected = "equalay"
29
30
AssertEqual g:expected, Translate(g:phrase)
30
-
31
31
Execute (word beginning with p):
32
32
let g:phrase = "pig"
33
33
let g:expected = "igpay"
@@ -47,6 +47,11 @@ Execute (word beginning with q without a following u):
47
47
let g:phrase = "qat"
48
48
let g:expected = "atqay"
49
49
AssertEqual g:expected, Translate(g:phrase)
50
+
51
+ Execute (word beginning with consonant and vowel containing qu):
52
+ let g:phrase = "liquid"
53
+ let g:expected = "iquidlay"
54
+ AssertEqual g:expected, Translate(g:phrase)
50
55
Execute (word beginning with ch):
51
56
let g:phrase = "chair"
52
57
let g:expected = "airchay"
You can’t perform that action at this time.
0 commit comments