changeset 15249:f30c0a7b8346

tests: add basic tests for doctest syntax
author Idan Kamara <idankk86@gmail.com>
date Thu, 13 Oct 2011 17:54:38 +0200
parents 3efbb5e8bf5c
children f172292cd416
files tests/test-run-tests.t
diffstat 1 files changed, 14 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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