markdown-textwrap

text wrap markdown documents
git clone git://git.ricketyspace.net/markdown-textwrap.git
Log | Files | Refs

commit 98dde38a414d56480dd568de4050bab88ed4b863
parent 7824e8fbae1849f328af21b17ab107173495c9b4
Author: rsiddharth <s@ricketyspace.net>
Date:   Sun, 25 Feb 2018 15:16:32 +0000

tests: Add TestTWRenderer.test_render_hrule.

* tests/data/renderer-hrules-w.md: New file.
* tests/data/renderer-hrules.md: New file.
* tests/test_md_tw.p (TestTWRenderer)[test_render_hrule]: New test method.

Diffstat:
tests/data/renderer-hrules-w.md | 19+++++++++++++++++++
tests/data/renderer-hrules.md | 19+++++++++++++++++++
tests/test_md_tw.py | 5+++++
3 files changed, 43 insertions(+), 0 deletions(-)

diff --git a/tests/data/renderer-hrules-w.md b/tests/data/renderer-hrules-w.md @@ -0,0 +1,19 @@ +* * * + +Dresden Dolls + +*** + +God Damn The Sun + +***** + +Backstabber + +- - - + +Sorry Bunch + +--------------------------------------- + +Gravity diff --git a/tests/data/renderer-hrules.md b/tests/data/renderer-hrules.md @@ -0,0 +1,19 @@ +* * * + +Dresden Dolls + +*** + +God Damn The Sun + +***** + +Backstabber + +- - - + +Sorry Bunch + +--------------------------------------- + +Gravity diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py @@ -819,6 +819,11 @@ class TestTWRenderer(object): expected_txt = self._get('renderer-lheading-w.md') self._validate(txt, expected_txt) + def test_render_hrule(self): + txt = self._md('renderer-hrules.md') + expected_txt = self._get('renderer-hrules-w.md') + self._validate(txt, expected_txt) + def teardown(self): pass