Skip to content

Commit 053a28b

Browse files
committed
Sync pig-latin tests
1 parent 1251ffe commit 053a28b

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

exercises/practice/pig-latin/.meta/tests.toml

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ description = "first letter and ay are moved to the end of words that start with
3939
[bce94a7a-a94e-4e2b-80f4-b2bb02e40f71]
4040
description = "first letter and ay are moved to the end of words that start with consonants -> word beginning with q without a following u"
4141

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+
4245
[c01e049a-e3e2-451c-bf8e-e2abb7e438b8]
4346
description = "some letter clusters are treated like a single consonant -> word beginning with ch"
4447

exercises/practice/pig-latin/pig_latin.vader

+6-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
12
Execute (word beginning with a):
23
let g:phrase = "apple"
34
let g:expected = "appleay"
@@ -27,7 +28,6 @@ Execute (word beginning with a vowel and followed by a qu):
2728
let g:phrase = "equal"
2829
let g:expected = "equalay"
2930
AssertEqual g:expected, Translate(g:phrase)
30-
3131
Execute (word beginning with p):
3232
let g:phrase = "pig"
3333
let g:expected = "igpay"
@@ -47,6 +47,11 @@ Execute (word beginning with q without a following u):
4747
let g:phrase = "qat"
4848
let g:expected = "atqay"
4949
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)
5055
Execute (word beginning with ch):
5156
let g:phrase = "chair"
5257
let g:expected = "airchay"

0 commit comments

Comments
 (0)