You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
wordy: the exception message the tests require is not documented #3184
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
kahgoh commentedon Nov 23, 2026
Closing as unplanned because Exercism uses TDD. Seeing the test output or reading the test is part of the practice.