-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
two_fer: sync with canonical data #1806
Conversation
@@ -1,5 +1,5 @@ | |||
def two_fer(name=""): | |||
if not name.strip(): |
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 no longer worked with None as the argument for test_no_name_given
@@ -7,7 +7,7 @@ | |||
|
|||
class TwoFerTest(unittest.TestCase): | |||
def test_no_name_given(self): | |||
self.assertEqual(two_fer(), 'One for you, one for me.') | |||
self.assertEqual(two_fer(None), 'One for you, one for me.') |
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.
As per canonical data switched null to None as this is the equivalent.
Merged; thanks for working on this! |
I'm going to say this change should not have been made. It makes no sense to force students two write an entirely un-Pythonic solution due to what is effectively an oversight in the canonical data. It is insensible to make a |
FWIW: |
part of #1762