Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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: 7 additions & 0 deletions exercises/practice/pig-latin/pig_latin_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,13 @@ TEST_CASE("y is treated like a vowel at the end of a consonant cluster",
"[adc90017-1a12-4100-b595-e346105042c7]") {
REQUIRE("ythmrhay" == pig_latin::translate("rhythm"));
}
// clang-format off
TEST_CASE(
"first_letter_and_ay_are_moved_to_the_end_of_words_that_start_with_consonants_->_word_beginning_with_consonant_and_vowel_containing_qu",
"[e59dbbe8-ccee-4619-a8e9-ce017489bfc0]") {
REQUIRE("iquidlay" == pig_latin::translate("liquid"));
}
// clang-format on

TEST_CASE("y as second letter in two letter word",
"[29b4ca3d-efe5-4a95-9a54-8467f2e5e59a]") {
Expand Down