mirror of
https://github.com/autistic-symposium/master-algorithms-py.git
synced 2025-04-29 20:26:07 -04:00
doctest simple example
This commit is contained in:
parent
ac0c509a73
commit
84e8d42871
11
src/useful_scripts/doctest_example.py
Normal file
11
src/useful_scripts/doctest_example.py
Normal file
@ -0,0 +1,11 @@
|
||||
'''
|
||||
The doctest module automatically runs any statement begining with >>>
|
||||
and compares the following line with the output from the interpreter.
|
||||
|
||||
>>> 1 == 1
|
||||
False
|
||||
'''
|
||||
|
||||
if __name__ == '__main__':
|
||||
import doctest
|
||||
doctest.testmod()
|
Loading…
x
Reference in New Issue
Block a user