minirst: add test for sections
authorMartin Geisler <mg@lazybytes.net>
Sun, 25 Apr 2010 16:17:24 +0200
changeset 10977 f4778f942a4e
parent 10976 5ff192fb09ff
child 10979 4760b17aee19
minirst: add test for sections
tests/test-minirst.py
tests/test-minirst.py.out
--- a/tests/test-minirst.py	Sat Apr 24 23:08:27 2010 +0200
+++ b/tests/test-minirst.py	Sun Apr 25 16:17:24 2010 +0200
@@ -181,3 +181,10 @@
 
 roles = """Please see :hg:`add`."""
 debugformat('roles', roles, 60)
+
+
+sections = """
+A Somewhat Wide Section Header
+------------------------------
+"""
+debugformat('sections', sections, 20)
--- a/tests/test-minirst.py.out	Sat Apr 24 23:08:27 2010 +0200
+++ b/tests/test-minirst.py.out	Sun Apr 25 16:17:24 2010 +0200
@@ -303,3 +303,9 @@
 Please see "hg add".
 ----------------------------------------------------------------------
 
+sections formatted to fit within 20 characters:
+----------------------------------------------------------------------
+A Somewhat Wide Section Header
+------------------------------
+----------------------------------------------------------------------
+