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
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions exercises/ocr-numbers/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,6 @@
{
"exercise": "ocr-numbers",
"version": "1.1.0",
"comments": [
"An expectation of -1 indicates that a failure should be raised"
],
"version": "1.2.0",
"cases": [
{
"description": "Converts lines of OCR Numbers to a string of integers",
Expand Down Expand Up @@ -57,7 +54,7 @@
" "
]
},
"expected": -1
"expected": {"error": "Number of input lines is not a multiple of four"}
},
{
"description": "Input with a number of columns that is not a multiple of three raises an error",
Expand All @@ -70,7 +67,7 @@
" "
]
},
"expected": -1
"expected": {"error": "Number of input columns is not a multiple of three"}
},
{
"description": "Recognizes 110101100",
Expand Down