-
Notifications
You must be signed in to change notification settings - Fork 8
Fixed mod function #7
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
base: master
Are you sure you want to change the base?
Conversation
calc/__init__.py
Outdated
| 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)
calc/tests/test_calc.py
Outdated
| 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
| assert pow(4,0.5) == 2 | ||
|
|
||
| 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