Skip to content

Sync bob: add missing canonical test case - #1035

Closed
ManasDasri wants to merge 1 commit into
exercism:mainfrom
ManasDasri:sync-bob-tests
Closed

Sync bob: add missing canonical test case#1035
ManasDasri wants to merge 1 commit into
exercism:mainfrom
ManasDasri:sync-bob-tests

Conversation

@ManasDasri

Copy link
Copy Markdown

Summary

Closes part of #1022 (configlet sync --test unsynced tests report).

Adds the missing canonical test case for the bob exercise:

  • UUID: 3c954328-86fb-4c71-8961-e18d6a5e2517
  • Description: "shouting a statement containing a question mark"
  • Input: "DO LIONS EAT PEOPLE? AHHHHH."
  • Expected: "Whoa, chill out!"

This case was present in problem-specifications/exercises/bob/canonical-data.json but missing from this track's bob_test.cpp and .meta/tests.toml.

Changes

  • exercises/practice/bob/bob_test.cpp: added TEST_CASE("shouting_a_statement_containing_a_question_mark", ...), placed alongside the existing statement_containing_question_mark case since both test question-mark handling in non-shouted vs. shouted statements.
  • exercises/practice/bob/.meta/tests.toml: added the corresponding UUID entry with its canonical description.

Verification

No changes were needed to .meta/example.cpp — compiled the example solution against the full updated test suite locally and confirmed all tests pass:


*All tests passed (26 assertions in 26 test cases)


(25 pre-existing cases + 1 newly added, all green

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

This PR touches files which potentially affect the outcome of the tests of an exercise. This will cause all students' solutions to affected exercises to be re-tested.

If this PR does not affect the result of the test (or, for example, adds an edge case that is not worth rerunning all tests for), please add the following to the merge-commit message which will stops student's tests from re-running. Please copy-paste to avoid typos.

[no important files changed]

For more information, refer to the documentation. If you are unsure whether to add the message or not, please ping @exercism/maintainers-admin in a comment. Thank you!

@github-actions

github-actions Bot commented Aug 9, 2026

Copy link
Copy Markdown
Contributor

Hello. Thanks for opening a PR on Exercism 🙂

We ask that all changes to Exercism are discussed on our Community Forum before being opened on GitHub. To enforce this, we automatically close all PRs that are submitted. That doesn't mean your PR is rejected but that we want the initial discussion about it to happen on our forum where a wide range of key contributors across the Exercism ecosystem can weigh in.

You can use this link to copy this into a new topic on the forum. If we decide the PR is appropriate, we'll reopen it and continue with it, so please don't delete your local branch.

If you're interested in learning more about this auto-responder, please read this blog post.


Note: If this PR has been pre-approved, please link back to this PR on the forum thread and a maintainer or staff member will reopen it.

@github-actions github-actions Bot closed this Aug 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant