tests: add basic tests for doctest syntax
authorIdan Kamara <idankk86@gmail.com>
Thu, 13 Oct 2011 17:54:38 +0200
changeset 15249 f30c0a7b8346
parent 15248 3efbb5e8bf5c
child 15250 f172292cd416
tests: add basic tests for doctest syntax
tests/test-run-tests.t
--- a/tests/test-run-tests.t	Thu Oct 13 17:54:37 2011 +0200
+++ b/tests/test-run-tests.t	Thu Oct 13 17:54:38 2011 +0200
@@ -16,6 +16,20 @@
   $ foo
   bar
 
+Doctest commands:
+
+  >>> print 'foo'
+  foo
+  $ echo interleaved
+  interleaved
+  >>> for c in 'xyz':
+  ...     print c
+  x
+  y
+  z
+  >>> print
+  <BLANKLINE>
+
 Regular expressions:
 
   $ echo foobarbaz