Skip to content

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

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 3 commits into from
Feb 14, 2019
Merged
Show file tree
Hide file tree
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
2 changes: 1 addition & 1 deletion exercises/hamming/package.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: hamming
version: 2.2.0.9
version: 2.3.0.10

dependencies:
- base
Expand Down
10 changes: 10 additions & 0 deletions exercises/hamming/test/Tests.hs
Original file line number Diff line number Diff line change
Expand Up @@ -61,4 +61,14 @@ cases = [ Case { description = "empty strands"
, strand2 = "AGTG"
, expected = Nothing
}
, Case { description = "disallow left empty strand"
, strand1 = ""
, strand2 = "G"
, expected = Nothing
}
, Case { description = "disallow right empty strand"
, strand1 = "G"
, strand2 = ""
, expected = Nothing
}
]