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

Hamming: Add a test case to avoid wrong recursion solution #1450

Merged
merged 4 commits into from
Feb 7, 2019
Merged
Changes from 1 commit
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
13 changes: 11 additions & 2 deletions exercises/hamming/canonical-data.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"exercise": "hamming",
"version": "2.2.0",
"version": "2.3.0",
"comments": [
"Language implementations vary on the issue of unequal length strands.",
"A language may elect to simplify this task by only presenting equal",
Expand Down Expand Up @@ -73,6 +73,15 @@
"strand2": "AGTG"
},
"expected": {"error": "left and right strands must be of equal length"}
}
},
{
"description": "disallow only one empty strand",
"property": "distance",
"input": {
"strand1": "",
"strand2": "G"
},
"expected": {"error": "left and right strands must be of equal length"}
}
sshine marked this conversation as resolved.
Show resolved Hide resolved
]
}