mirror of
https://github.com/TheAlgorithms/Python.git
synced 2024-11-27 15:01:08 +00:00
change doctest line (#2007)
* change doctest line import doctest is not relevant with algorithms. move it under main section. * from doctest import testmod Co-authored-by: Christian Clauss <cclauss@me.com>
This commit is contained in:
parent
f9e0dd94d6
commit
7a8696cd6d
|
@ -81,10 +81,9 @@ def chinese_remainder_theorem2(n1, r1, n2, r2):
|
|||
return (n % m + m) % m
|
||||
|
||||
|
||||
# import testmod for testing our function
|
||||
if __name__ == "__main__":
|
||||
from doctest import testmod
|
||||
|
||||
if __name__ == "__main__":
|
||||
testmod(name="chinese_remainder_theorem", verbose=True)
|
||||
testmod(name="chinese_remainder_theorem2", verbose=True)
|
||||
testmod(name="invert_modulo", verbose=True)
|
||||
|
|
Loading…
Reference in New Issue
Block a user