Skip to content

Sync tests for exercise/practice/pig-latin #960

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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 @@ -92,6 +92,13 @@ TEST_CASE("y is treated like a vowel at the end of a consonant cluster",
REQUIRE("ythmrhay" == pig_latin::translate("rhythm"));
}

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"));
}

TEST_CASE("y as second letter in two letter word",
"[29b4ca3d-efe5-4a95-9a54-8467f2e5e59a]") {
REQUIRE("ymay" == pig_latin::translate("my"));
Expand Down
Loading