summaryrefslogtreecommitdiffstats
path: root/tests/test_md_tw.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_md_tw.py')
-rw-r--r--tests/test_md_tw.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py
index a71c191..da7981c 100644
--- a/tests/test_md_tw.py
+++ b/tests/test_md_tw.py
@@ -90,6 +90,19 @@ class TestTWBlockLexer(object):
self._validate(tokens, 'heading', expected_lhs)
+ def test_parse_hrule(self):
+ tokens = self._parse('blexer-hrules.md')
+
+ expected_hrs = [
+ '* * *\n\n',
+ '***\n\n',
+ '*****\n\n',
+ '- - -\n\n',
+ '---------------------------------------\n\n'
+ ]
+
+ self._validate(tokens, 'hrule', expected_hrs)
+
def teardown(self):
pass