Skip to content

Commit 00151fa

Browse files
srabuiniInsti
authored andcommitted
Add a more helpful test failure message (#416)
As you can see in the README file, you must ignore arithmetical precedence rules and calculate as you move forward each step.
1 parent 8aff14c commit 00151fa

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

exercises/wordy/wordy_test.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,8 @@ def test_multiply_twice
7171
def test_add_then_multiply
7272
skip
7373
question = 'What is -3 plus 7 multiplied by -2?'
74-
assert_equal(-8, WordProblem.new(question).answer)
74+
message = 'You should ignore order of precedence. -3 + 7 * -2 = -8, not -17'
75+
assert_equal(-8, WordProblem.new(question).answer, message)
7576
end
7677

7778
def test_divide_twice

0 commit comments

Comments
 (0)