Skip to content

Address vehicle-purchase review findings - #996

Merged
glennj merged 1 commit into
exercism:mainfrom
glennj:review-conditionals
Dec 5, 2026
Merged

glennj merged 1 commit into
exercism:mainfrom
glennj:review-conditionals

Conversation

@glennj

@glennj glennj commented Dec 5, 2026

Copy link
Copy Markdown
Contributor
  • Add a vehicle-purchase test that the price calculation multiplies before dividing. Before this, dividing by 100 first passed every test.
  • Add declare lines to the tests to silence ShellCheck SC2154.
  • Change a code fence in the conditionals concept from if to bash, and regenerate the exercise introduction.
  • Drop the stub comment and hint about quoting with [ and test, which the exercise does not cover.

The exemplar passes all 20 tests, and ShellCheck and bin/configlet lint pass.

🤖 Generated with Claude Code

Test that the price calculation multiplies before dividing, silence a
ShellCheck warning in the tests, fix a code fence language in the
conditionals concept, and drop advice about [ and test, which the
exercise does not cover.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Dec 5, 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!

@glennj glennj added the ready-to-translate The English in this PR is final; queue its translations label Dec 5, 2026
exercism-i18n Bot added a commit to exercism/i18n that referenced this pull request Dec 5, 2026
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
@exercism-i18n

exercism-i18n Bot commented Dec 5, 2026

Copy link
Copy Markdown

This PR has been translated 🚀

@glennj
glennj merged commit c90ea5e into exercism:main Dec 5, 2026
11 of 12 checks passed
@glennj
glennj deleted the review-conditionals branch December 5, 2026 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ready-to-translate The English in this PR is final; queue its translations

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants