Skip to content

Commit f3ac72a

Browse files
IsaacGvaeng
andauthored
Sync tests for exercise/practice/pig-latin (#960)
* Sync tests for exercise/practice/pig-latin * fix: avoid line break in test case name --------- Co-authored-by: vaeng <34183939+vaeng@users.noreply.github.com>
1 parent 9067706 commit f3ac72a

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
@@ -91,6 +91,13 @@ TEST_CASE("y is treated like a vowel at the end of a consonant cluster",
9191
"[adc90017-1a12-4100-b595-e346105042c7]") {
9292
REQUIRE("ythmrhay" == pig_latin::translate("rhythm"));
9393
}
94+
// clang-format off
95+
TEST_CASE(
96+
"first_letter_and_ay_are_moved_to_the_end_of_words_that_start_with_consonants_->_word_beginning_with_consonant_and_vowel_containing_qu",
97+
"[e59dbbe8-ccee-4619-a8e9-ce017489bfc0]") {
98+
REQUIRE("iquidlay" == pig_latin::translate("liquid"));
99+
}
100+
// clang-format on
94101

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

0 commit comments

Comments
 (0)