-
-
Notifications
You must be signed in to change notification settings - Fork 46.6k
Changing Name of file and adding doctests in file. #9504
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
Changing Name of file and adding doctests in file. #9504
Conversation
for more information, see https://pre-commit.ci
@@ -548,7 +548,7 @@ | |||
* [Basic Maths](maths/basic_maths.py) | |||
* [Binary Exp Mod](maths/binary_exp_mod.py) | |||
* [Binary Exponentiation](maths/binary_exponentiation.py) | |||
* [Binary Exponentiation 2](maths/binary_exponentiation_2.py) | |||
* [Binary Exponentiation 2](maths/binary_multiplication.py) |
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.
Please don't modify DIRECTORY.md. This file is auto-generated with a script.
if __name__ == "__main__": | ||
import doctest | ||
|
||
doctest.testmod() |
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.
The main block should be placed at the bottom of the file.
|
||
doctest.testmod() | ||
|
||
|
||
def b_expo_mod(a: int, b: int, c: int) -> int: |
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 also needs doctests
??? Ok then |
Can you please check this one Pr. I am new to git i am not able to change things in this PR so I made this new repository. |
Describe your change:
Change the File and Added doctests in maths/binary_exponentiation_2.py
Fixes Issue #9478
Checklist:
maths/binary_exponentiation_2.py
needs to be renamed #9478