Skip to content

wordy: the exception message the tests require is not documented #3184

Closed as not planned

Description

@Mike-7777777

The eight error tests in wordy's WordProblemSolverTest (unknown operation, non-math question, missing operand, no operands, two operations in a row, two numbers after an operation, postfix and prefix notation) all assert

.withMessage("I'm sorry, I don't understand the question!")

but the exercise never says so. instructions.md only says these inputs should be rejected, there is no instructions.append.md, and the stub gives no hint about the exception type or message. A student who throws, say, IllegalArgumentException("unknown operation") fails all eight tests with no way to know why until they open the test file.

Other exercises document this already: the Java track's pov and the Python track's wordy state the exact messages in instructions.append.md.

Proposed fix: add .docs/instructions.append.md stating the exception type and message, in the same format as pov. Tests and the example solution stay unchanged. PR: #3182.

Activity

  1. kahgoh commented on Nov 23, 2026

    @kahgoh
    Member

    Closing as unplanned because Exercism uses TDD. Seeing the test output or reading the test is part of the practice.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions