PATH: //opt/alt/python311/lib64/python3.11/test/test_doctest
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 __init__.py
↓
X
📁 __pycache__/
X
📄 decorator_mod.py
↓
X
📄 doctest_aliases.py
↓
X
📄 doctest_lineno.py
↓
X
📄 sample_doctest.py
↓
X
📄 sample_doctest_no_docstrings.py
↓
X
📄 sample_doctest_no_doctests.py
↓
X
📄 test_doctest.py
↓
X
📄 test_doctest.txt
↓
X
📄 test_doctest2.py
↓
X
📄 test_doctest2.txt
↓
X
📄 test_doctest3.txt
↓
X
📄 test_doctest4.txt
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: sample_doctest.py
"""This is a sample module that doesn't really test anything all that interesting. It simply has a few tests, some of which succeed and some of which fail. It's important that the numbers remain constant as another test is testing the running of these tests. >>> 2+2 4 """ def foo(): """ >>> 2+2 5 >>> 2+2 4 """ def bar(): """ >>> 2+2 4 """ def test_silly_setup(): """ >>> import test.test_doctest.test_doctest >>> test.test_doctest.test_doctest.sillySetup True """ def w_blank(): """ >>> if 1: ... print('a') ... print() ... print('b') a <BLANKLINE> b """ x = 1 def x_is_one(): """ >>> x 1 """ def y_is_one(): """ >>> y 1 """ __test__ = {'good': """ >>> 42 42 """, 'bad': """ >>> 42 666 """, } def test_suite(): import doctest return doctest.DocTestSuite()
SIMPAN PERUBAHAN