Skip to content
Closed
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/bob/.meta/tests.toml
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,9 @@ description = "shouting with no exclamation mark"
[aa8097cc-c548-4951-8856-14a404dd236a]
description = "statement containing question mark"

[3c954328-86fb-4c71-8961-e18d6a5e2517]
description = "shouting a statement containing a question mark"

[9bfc677d-ea3a-45f2-be44-35bc8fa3753e]
description = "non-letters with question"

Expand Down
5 changes: 5 additions & 0 deletions exercises/practice/bob/bob_test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,11 @@ TEST_CASE("statement_containing_question_mark",
REQUIRE("Whatever." == bob::hey("Ending with ? means a question."));
}

TEST_CASE("shouting_a_statement_containing_a_question_mark",
"[3c954328-86fb-4c71-8961-e18d6a5e2517]") {
REQUIRE("Whoa, chill out!" == bob::hey("DO LIONS EAT PEOPLE? AHHHHH."));
}

TEST_CASE("non_letters_with_question",
"[9bfc677d-ea3a-45f2-be44-35bc8fa3753e]") {
REQUIRE("Sure." == bob::hey(":) ?"));
Expand Down