Skip to content

Commit

Permalink
Add missing test to pig-latin
Browse files Browse the repository at this point in the history
  • Loading branch information
verdammelt committed Jan 1, 2025
1 parent 521faf2 commit 1784265
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
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 @@ -67,3 +67,6 @@ description = "y as second letter in two letter word"

[44616581-5ce3-4a81-82d0-40c7ab13d2cf]
description = "a whole phrase"

[e59dbbe8-ccee-4619-a8e9-ce017489bfc0]
description = "word beginning with consonant and vowel containing qu"
4 changes: 4 additions & 0 deletions exercises/practice/pig-latin/pig-latin-test.lisp
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,10 @@
(let ((phrase "equal"))
(is (string= "equalay" (pig-latin:translate phrase)))))

(test word-beginning-with-consonant-and-vowel-containing-qu
(let ((phrase "liquid"))
(is (string= "iquidlay" (pig-latin:translate phrase)))))

(test word-beginning-with-p
(let ((phrase "pig"))
(is (string= "igpay" (pig-latin:translate phrase)))))
Expand Down

0 comments on commit 1784265

Please sign in to comment.