[PATCH 3 of 3] tests: add basic tests for doctest syntax

Idan Kamara idankk86 at gmail.com
Thu Oct 13 10:56:11 CDT 2011


# HG changeset patch
# User Idan Kamara <idankk86 at gmail.com>
# Date 1318521278 -7200
# Node ID 3408790bbc05f8c5a458ed89207a4d9c3ff2b500
# Parent  fad3c0d87935c633d21c63f0615449a93e2521fe
tests: add basic tests for doctest syntax

diff --git a/tests/test-run-tests.t b/tests/test-run-tests.t
--- a/tests/test-run-tests.t
+++ b/tests/test-run-tests.t
@@ -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


More information about the Mercurial-devel mailing list