Skip to content

Commit

Permalink
Sync pig-latin tests
Browse files Browse the repository at this point in the history
  • Loading branch information
BNAndras committed Jan 6, 2025
1 parent 1251ffe commit 053a28b
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
3 changes: 3 additions & 0 deletions exercises/practice/pig-latin/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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"

Expand Down
7 changes: 6 additions & 1 deletion exercises/practice/pig-latin/pig_latin.vader
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@

Execute (word beginning with a):
let g:phrase = "apple"
let g:expected = "appleay"
Expand Down Expand Up @@ -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"
Expand All @@ -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"
Expand Down

0 comments on commit 053a28b

Please sign in to comment.