-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
hamming: update tests to version 2.0.1 #1031
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
Changes from 4 commits
6c85857
72d763e
907b8d4
50dd2e5
577c802
e8f06ba
c7376ed
af7e2ff
0062a80
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,10 +3,13 @@ | |
import hamming | ||
|
||
|
||
# test cases adapted from `x-common//canonical-data.json` @ version: 1.0.0 | ||
# Tests adapted from `problem-specifications//canonical-data.json` @ v2.0.1 | ||
|
||
class HammingTest(unittest.TestCase): | ||
|
||
|
||
def test_identical_strands(self): | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This function shares it's name with the one below, so it's just getting redefined without use. You need to change the name of one of these functions. |
||
self.assertEqual(hamming.distance("", ""), 0) | ||
|
||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. You have extra whitespace in this line. |
||
def test_identical_strands(self): | ||
self.assertEqual(hamming.distance("A", "A"), 0) | ||
|
||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You have extra whitespace in this line.