-
-
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
Conversation
If you reference the corresponding issue with |
Resolves #1015 |
@kishan3, I believe that the magic words need to be in the description for them to work. You can edit your description by clicking the pencil icon on the top-right of your first comment, where it currently says "No description provided.". |
Sure sir thank you for guidance. |
Hello @N-Parsons why the check is failing can you please help me understand? |
exercises/hamming/hamming_test.py
Outdated
|
||
class HammingTest(unittest.TestCase): | ||
|
||
|
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.
exercises/hamming/hamming_test.py
Outdated
|
||
def test_identical_strands(self): | ||
self.assertEqual(hamming.distance("", ""), 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.
exercises/hamming/hamming_test.py
Outdated
|
||
class HammingTest(unittest.TestCase): | ||
|
||
|
||
def test_identical_strands(self): |
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.
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.
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 can access the details for the failures by clicking "Details" next to where it says the check failed. This lets you access the log for the failed test, and generally gives good debugging information.
In your case, your code is failing the flake8
tests, meaning that there are issues with formatting and redundant code. The log can be found here: https://travis-ci.org/exercism/python/jobs/292602608
Thank you sir @N-Parsons. Will make the changes. |
@N-Parsons Fixed Failing Builds Please check. |
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.
It looks like test_non_unique_character_in_first_strand
should be using AAG
and AAA
as arguments for hamming.distance
.
Similarly, test_non_unique_character_in_second_strand
should be using AAA
and AAG
as arguments for hamming.distance
.
Sure @N-Parsons. Thanks suggesting the changes. |
Updated. |
Perfect! Thanks @kishan3! |
* Added Python Concept Exercise None * Ran Prettier for Linting * Updated Story and new Exercises * Review 1 None-Intro.md * Review Changes 2
* Added Python Concept Exercise None * Ran Prettier for Linting * Updated Story and new Exercises * Review 1 None-Intro.md * Review Changes 2
* Added Python Concept Exercise None * Ran Prettier for Linting * Updated Story and new Exercises * Review 1 None-Intro.md * Review Changes 2
* Added Python Concept Exercise None * Ran Prettier for Linting * Updated Story and new Exercises * Review 1 None-Intro.md * Review Changes 2
* Added Python Concept Exercise None * Ran Prettier for Linting * Updated Story and new Exercises * Review 1 None-Intro.md * Review Changes 2
* Added Python Concept Exercise None * Ran Prettier for Linting * Updated Story and new Exercises * Review 1 None-Intro.md * Review Changes 2
* Added Python Concept Exercise None * Ran Prettier for Linting * Updated Story and new Exercises * Review 1 None-Intro.md * Review Changes 2
Resolves #1015