test-minirst: don't test on invalid reST input
authorMartin Geisler <mg@lazybytes.net>
Thu, 05 Nov 2009 21:53:22 +0100
changeset 9736 26d3ade60fa6
parent 9735 97d0d910fa5d
child 9737 5f101af4a921
test-minirst: don't test on invalid reST input Input such as Only the left-most line (this line!) is significant for the indentation is not valid reStructuredText: the first line starts a block quote, but then the second line is not allowed to be unindented.
tests/test-minirst.py
tests/test-minirst.py.out
--- a/tests/test-minirst.py	Thu Nov 05 21:30:50 2009 +0100
+++ b/tests/test-minirst.py	Thu Nov 05 21:53:22 2009 +0100
@@ -12,28 +12,13 @@
 paragraphs = """
 This is some text in the first paragraph.
 
-  An indented paragraph
-  with just two lines.
-
-
-The third paragraph. It is followed by some
-random lines with spurious spaces.
+  A small indented paragraph.
+  It is followed by some lines
+  containing random whitespace.
  
   
    
-  
- 
-No indention
- here, despite
-the uneven left
- margin.
-
-      Only the
-    left-most line
-  (this line!)
-    is significant
-      for the indentation
-
+The third and final paragraph.
 """
 
 debugformat('paragraphs', paragraphs, 60)
--- a/tests/test-minirst.py.out	Thu Nov 05 21:30:50 2009 +0100
+++ b/tests/test-minirst.py.out	Thu Nov 05 21:53:22 2009 +0100
@@ -2,15 +2,10 @@
 ----------------------------------------------------------------------
 This is some text in the first paragraph.
 
-  An indented paragraph with just two lines.
-
-The third paragraph. It is followed by some random lines
-with spurious spaces.
+  A small indented paragraph. It is followed by some lines
+  containing random whitespace.
 
-No indention here, despite the uneven left margin.
-
-  Only the left-most line (this line!) is significant for
-  the indentation
+The third and final paragraph.
 ----------------------------------------------------------------------
 
 paragraphs formatted to fit within 30 characters:
@@ -18,19 +13,12 @@
 This is some text in the first
 paragraph.
 
-  An indented paragraph with
-  just two lines.
-
-The third paragraph. It is
-followed by some random lines
-with spurious spaces.
+  A small indented paragraph.
+  It is followed by some lines
+  containing random
+  whitespace.
 
-No indention here, despite the
-uneven left margin.
-
-  Only the left-most line
-  (this line!) is significant
-  for the indentation
+The third and final paragraph.
 ----------------------------------------------------------------------
 
 definitions formatted to fit within 60 characters: