diff tests/test-run-tests.t @ 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 518dd70d1a6e
children 5635a4017061
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