From 053a28b1611af8261e001f05820303a5e6616d77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A1s=20B=20Nagy?= <20251272+BNAndras@users.noreply.github.com> Date: Sun, 5 Jan 2025 22:20:15 -0800 Subject: [PATCH] Sync `pig-latin` tests --- exercises/practice/pig-latin/.meta/tests.toml | 3 +++ exercises/practice/pig-latin/pig_latin.vader | 7 ++++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/exercises/practice/pig-latin/.meta/tests.toml b/exercises/practice/pig-latin/.meta/tests.toml index c29168c..d524305 100644 --- a/exercises/practice/pig-latin/.meta/tests.toml +++ b/exercises/practice/pig-latin/.meta/tests.toml @@ -39,6 +39,9 @@ description = "first letter and ay are moved to the end of words that start with [bce94a7a-a94e-4e2b-80f4-b2bb02e40f71] description = "first letter and ay are moved to the end of words that start with consonants -> word beginning with q without a following u" +[e59dbbe8-ccee-4619-a8e9-ce017489bfc0] +description = "first letter and ay are moved to the end of words that start with consonants -> word beginning with consonant and vowel containing qu" + [c01e049a-e3e2-451c-bf8e-e2abb7e438b8] description = "some letter clusters are treated like a single consonant -> word beginning with ch" diff --git a/exercises/practice/pig-latin/pig_latin.vader b/exercises/practice/pig-latin/pig_latin.vader index 2a9a114..cc05889 100644 --- a/exercises/practice/pig-latin/pig_latin.vader +++ b/exercises/practice/pig-latin/pig_latin.vader @@ -1,3 +1,4 @@ + Execute (word beginning with a): let g:phrase = "apple" let g:expected = "appleay" @@ -27,7 +28,6 @@ Execute (word beginning with a vowel and followed by a qu): let g:phrase = "equal" let g:expected = "equalay" AssertEqual g:expected, Translate(g:phrase) - Execute (word beginning with p): let g:phrase = "pig" let g:expected = "igpay" @@ -47,6 +47,11 @@ Execute (word beginning with q without a following u): let g:phrase = "qat" let g:expected = "atqay" AssertEqual g:expected, Translate(g:phrase) + +Execute (word beginning with consonant and vowel containing qu): + let g:phrase = "liquid" + let g:expected = "iquidlay" + AssertEqual g:expected, Translate(g:phrase) Execute (word beginning with ch): let g:phrase = "chair" let g:expected = "airchay"