Skip to content

hamming: remove mention of -1 as error indication #1389

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

Merged
merged 1 commit into from
Nov 11, 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
11 changes: 4 additions & 7 deletions exercises/hamming/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
{
"exercise": "hamming",
"version": "2.1.0",
"version": "2.1.1",
"comments": [
"Language implementations vary on the issue of unequal length strands.",
"A language may elect to simplify this task by only presenting equal",
"length test cases. For languages handling unequal length strands as",
"error condition, unequal length test cases are included here and are",
"indicated with an expected value of -1. Note however that -1 is",
"simply an indication here in the JSON. Actually returning -1 from",
"a hamming distance function may or may not be idiomatic in a language.",
"Language idioms of errors or exceptions should be followed.",
"Alternative interpretations such as ignoring excess length at the end",
"are not represented here."
"indicated with an error object. Language idioms of errors or exceptions",
"should be followed. Alternative interpretations such as ignoring excess",
"length at the end are not represented here."
],
"cases": [
{
Expand Down