# HG changeset patch # User Martin Geisler # Date 1257454402 -3600 # Node ID 26d3ade60fa69ec954cea6b630d1a784a297b1d8 # Parent 97d0d910fa5d6a49302d76ac3f72667cea58ca31 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. diff -r 97d0d910fa5d -r 26d3ade60fa6 tests/test-minirst.py --- 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) diff -r 97d0d910fa5d -r 26d3ade60fa6 tests/test-minirst.py.out --- 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: