Mercurial > hg
changeset 9736:26d3ade60fa6
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.
author | Martin Geisler <mg@lazybytes.net> |
---|---|
date | Thu, 05 Nov 2009 21:53:22 +0100 |
parents | 97d0d910fa5d |
children | 5f101af4a921 |
files | tests/test-minirst.py tests/test-minirst.py.out |
diffstat | 2 files changed, 12 insertions(+), 39 deletions(-) [+] |
line wrap: on
line diff
--- 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: