Skip to content

Commit cf828cd

Browse files
committed
Sync tests for exercise/practice/pig-latin
1 parent 32fe0da commit cf828cd

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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

Lines changed: 3 additions & 0 deletions
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_test.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,13 @@ TEST_CASE("y is treated like a vowel at the end of a consonant cluster",
9292
REQUIRE("ythmrhay" == pig_latin::translate("rhythm"));
9393
}
9494

95+
TEST_CASE(
96+
"first_letter_and_ay_are_moved_to_the_end_of_words_that_start_with_"
97+
"consonants_->_word_beginning_with_consonant_and_vowel_containing_qu",
98+
"[e59dbbe8-ccee-4619-a8e9-ce017489bfc0]") {
99+
REQUIRE("iquidlay" == pig_latin::translate("liquid"));
100+
}
101+
95102
TEST_CASE("y as second letter in two letter word",
96103
"[29b4ca3d-efe5-4a95-9a54-8467f2e5e59a]") {
97104
REQUIRE("ymay" == pig_latin::translate("my"));

0 commit comments

Comments
 (0)