-
Notifications
You must be signed in to change notification settings - Fork 8
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
Fixed mod function #7
base: master
Are you sure you want to change the base?
Conversation
@@ -14,8 +14,8 @@ def mul(a, b): | |||
return b | |||
|
|||
def mod(a, b): | |||
res = a % b | |||
return -1 | |||
"""Return the mod of 2 integers""" |
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 indentation is incorrect (should be 4 spaces)
@@ -3,3 +3,5 @@ | |||
def test_add(): | |||
assert add(1, 2) == 3 | |||
|
|||
def test_mod(): | |||
assert mod(5,2) == 1 |
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.
Incorrect indentation
Please rebase on master |
0af23aa
to
0893b57
Compare
|
||
def test_mod(): | ||
assert mod(5,2) == 1 |
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.
Incorrect indentation.
Please ensure editor is set to indent with 4 spaces.
I've fixed the mod(a,b) function implementation