Skip to content
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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

wilson1yan
Copy link

I've fixed the mod(a,b) function implementation

@@ -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"""
Copy link
Contributor

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
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incorrect indentation

@stefanv
Copy link
Contributor

stefanv commented Sep 28, 2016

Please rebase on master


def test_mod():
assert mod(5,2) == 1
Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants