Home
last modified time | relevance | path

Searched refs:doctest (Results 1 - 25 of 71) sorted by relevance

123

/third_party/python/Lib/ctypes/test/
H A Dtest_objects.py44 >>> print(x.array._b_base_) # doctest: +ELLIPSIS
57 import unittest, doctest namespace
63 failures, tests = doctest.testmod(ctypes.test.test_objects)
67 doctest.testmod(ctypes.test.test_objects)
/third_party/rust/crates/memoffset/src/
H A Dlib.rs67 #[cfg(doctest)]
70 #[cfg(doctest)]
71 doctest!("../README.md");
/third_party/python/Lib/test/
H A Dtest_doctest.py2 Test script for doctest.
8 import doctest namespace
201 >>> example = doctest.Example('print(1)', '1\n')
211 >>> example = doctest.Example('[].pop()', '', exc_msg,
213 ... options={doctest.ELLIPSIS: True})
221 >>> e = doctest.Example('print(1)', '1\n')
225 >>> e = doctest.Example('print(1)\n', '1\n')
230 >>> e = doctest.Example('print(1);\nprint(2)\n', '1\n2\n')
234 >>> e = doctest.Example('print(1);\nprint(2)', '1\n2\n')
239 >>> e = doctest
[all...]
H A Dtest_doctest2.py1 """A module to test whether doctest recognizes some 2.2 features,
112 import doctest, sys namespace
114 f, t = doctest.testmod(sys.modules[__name__])
123 from doctest import *
H A Dsample_doctest.py75 import doctest namespace
76 return doctest.DocTestSuite()
H A Dtest_extcall.py523 import doctest namespace
528 tests.addTest(doctest.DocTestSuite())
H A Dtest_unpack_ex.py3 import doctest namespace
318 >>> a, *b, c, *d, e = range(10) # doctest:+ELLIPSIS
323 >>> [*b, *c] = range(10) # doctest:+ELLIPSIS
328 >>> a,*b,*c,*d = range(4) # doctest:+ELLIPSIS
333 >>> *a = range(10) # doctest:+ELLIPSIS
338 >>> *a # doctest:+ELLIPSIS
343 >>> *1 # doctest:+ELLIPSIS
348 >>> x = *a # doctest:+ELLIPSIS
353 >>> (*x),y = 1, 2 # doctest:+ELLIPSIS
358 >>> (((*x))),y = 1, 2 # doctest
[all...]
H A Dtest_listcomps.py1 import doctest namespace
50 >>> [y for y in (1,2)] = 10 # doctest: +IGNORE_EXCEPTION_DETAIL
55 >>> [y for y in (1,2)] += 10 # doctest: +IGNORE_EXCEPTION_DETAIL
152 tests.addTest(doctest.DocTestSuite())
H A Dtest_setcomps.py1 import doctest namespace
55 >>> {y for y in (1,2)} = 10 # doctest: +IGNORE_EXCEPTION_DETAIL
60 >>> {y for y in (1,2)} += 10 # doctest: +IGNORE_EXCEPTION_DETAIL
155 tests.addTest(doctest.DocTestSuite())
H A Dtest_metaclass.py1 import doctest namespace
264 tests.addTest(doctest.DocTestSuite())
H A Dtest_genexps.py2 import doctest namespace
115 >>> dict(a = (i for i in range(10))) #doctest: +ELLIPSIS
289 tests.addTest(doctest.DocTestSuite())
H A Dtest_unpack.py1 import doctest namespace
150 tests.addTest(doctest.DocTestSuite())
H A Dtest_descrtut.py13 import doctest namespace
477 tests.addTest(doctest.DocTestSuite())
H A Dtest_pickletools.py5 import doctest namespace
99 tests.addTest(doctest.DocTestSuite(pickletools))
H A Dtest_zipimport_support.py12 import doctest namespace
25 # doctest (Issue 4197)
37 finder = doctest.DocTestFinder(verbose=verbose, recurse=False)
38 runner = doctest.DocTestRunner(verbose=verbose)
51 print ('doctest (%s) ... %d tests with zero failures' % (module.__name__, t))
96 # To avoid having to keep two copies of the doctest module's
109 # The sample doctest files rewritten to include in the zipped version.
138 # which aren't available to the zipped version (the doctest
142 # doctest could really use some APIs which take a text
192 import doctest
[all...]
H A Dtest_cmd.py9 import doctest namespace
82 >>> mycmd.onecmd("help meaning") # doctest: +NORMALIZE_WHITESPACE
128 >>> mycmd.cmdloop() # doctest: +REPORT_NDIFF
248 tests.addTest(doctest.DocTestSuite())
/third_party/rust/crates/nom/src/
H A Dlib.rs383 #[cfg(doctest)]
386 #[cfg(doctest)]
387 doc_comment::doctest!("../README.md");
/third_party/python/Lib/distutils/tests/
H A Dtest_versionpredicate.py6 import doctest namespace
10 return doctest.DocTestSuite(distutils.versionpredicate)
/third_party/python/Doc/includes/
H A Dtest.py198 import doctest, __main__ namespace
199 doctest.testmod(__main__)
/third_party/nghttp2/doc/
H A Dmake.bat33 echo. doctest to run all doctests embedded in the documentation if enabled
161 if "%1" == "doctest" (
162 %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
166 results in %BUILDDIR%/doctest/output.txt.
/third_party/json/tests/thirdparty/doctest/
H A Ddoctest.h5 // doctest.h - the lightest feature-rich C++ single-header testing framework for unit tests and TDD
14 // https://github.com/onqtam/doctest/blob/master/doc/markdown/readme.md
430 // see this issue on why this is needed: https://github.com/onqtam/doctest/issues/183
447 namespace doctest { namespace
939 // see this issue on why this is needed: https://github.com/onqtam/doctest/issues/183
1082 #define SFINAE_OP(ret,op) decltype(doctest::detail::declval<L>() op doctest::detail::declval<R>(),static_cast<ret>(0))
1087 bool res = op_macro(doctest::detail::forward<L>(lhs), doctest::detail::forward<R>(rhs)); \
1090 if(!res || doctest
[all...]
/third_party/python/Tools/demo/
H A Dvector.py91 import doctest namespace
92 doctest.testmod()
/third_party/python/Lib/test/test_json/
H A D__init__.py3 import doctest namespace
53 suite.addTest(doctest.DocTestSuite(mod))
/third_party/python/Doc/
H A DMakefile27 suspicious coverage doctest pydoc-topics htmlview clean dist check serve \
44 @echo " doctest to run doctests in the documentation"
131 doctest: BUILDER = doctest
132 doctest:
135 "results in build/doctest/output.txt"; \
/third_party/libuv/docs/
H A Dmake.bat40 echo. doctest to run all doctests embedded in the documentation if enabled
218 if "%1" == "doctest" (
219 %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
223 results in %BUILDDIR%/doctest/output.txt.

Completed in 10 milliseconds

123