From 86d0069f0a1773b2ffb44c454fd99631b30eec3c Mon Sep 17 00:00:00 2001 From: Ryan Potts Date: Mon, 24 Sep 2018 10:15:14 -0400 Subject: [PATCH] wordy: implement "error" object per #1311 proper error handling object incorporated into last two test cases. wordy: lowerCased error message 2nd word per @ErikSchierboom suggestion. wordy: reworded comment to indicate 'error' per @Insti's request. wordy: error messages more helpful. --- exercises/wordy/canonical-data.json | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/exercises/wordy/canonical-data.json b/exercises/wordy/canonical-data.json index 13b60698f8..ab7384c8d7 100644 --- a/exercises/wordy/canonical-data.json +++ b/exercises/wordy/canonical-data.json @@ -1,8 +1,8 @@ { "exercise": "wordy", - "version": "1.1.0", + "version": "1.2.0", "comments": [ - "The tests that expect 'false' should be implemented to raise", + "The tests that expect an 'error' should be implemented to raise", "an error, or indicate a failure. Implement this in a way that", "makes sense for your language." ], @@ -125,7 +125,7 @@ "input": { "question": "What is 52 cubed?" }, - "expected": false + "expected": {"error": "unknown operation"} }, { "description": "Non math question", @@ -133,7 +133,7 @@ "input": { "question": "Who is the President of the United States?" }, - "expected": false + "expected": {"error": "unknown operation"} } ] } \ No newline at end of file