changeset 10977:f4778f942a4e

minirst: add test for sections
author Martin Geisler <mg@lazybytes.net>
date Sun, 25 Apr 2010 16:17:24 +0200
parents 5ff192fb09ff
children 4760b17aee19
files tests/test-minirst.py tests/test-minirst.py.out
diffstat 2 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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
+------------------------------
+----------------------------------------------------------------------
+