Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ocr-numbers: implement error object #1335

Merged
merged 1 commit into from
Sep 24, 2018

Conversation

rpottsoh
Copy link
Member

per #1311

@@ -1,6 +1,6 @@
{
"exercise": "ocr-numbers",
"version": "1.1.0",
"version": "1.2.0",
"comments": [
"An expectation of -1 indicates that a failure should be raised"
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Redundant comment.

@@ -57,7 +57,7 @@
" "
]
},
"expected": -1
"expected": {"error": "must be a multiple of four"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What must be?

@@ -54,7 +54,7 @@
" "
]
},
"expected": {"error": "must be a multiple of four"}
"expected": {"error": "rows must be a multiple of four"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't match the language of the description

@@ -67,7 +67,7 @@
" "
]
},
"expected": {"error": "must be a multiple of three"}
"expected": {"error": "rows must be a multiple of three"}
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has a different meaning to the description.

Copy link
Contributor

@Insti Insti left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make the error messages match the descriptions

per exercism#1311
ocr-numbers: remove redundant comment

per @Insti's suggestion.
ocr-numbers: add clarity to error messages

per @Insti suggestion.
ocr-numbers: improved wording of error messages
@rpottsoh rpottsoh merged commit 965ecad into exercism:master Sep 24, 2018
@rpottsoh rpottsoh deleted the updateOcr-Numbers branch September 24, 2018 15:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants