summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/data/renderer-heading-w.md11
-rw-r--r--tests/data/renderer-heading.md11
-rw-r--r--tests/data/renderer-lheading-w.md13
-rw-r--r--tests/data/renderer-lheading.md13
-rw-r--r--tests/test_md_tw.py9
5 files changed, 57 insertions, 0 deletions
diff --git a/tests/data/renderer-heading-w.md b/tests/data/renderer-heading-w.md
new file mode 100644
index 0000000..382896d
--- /dev/null
+++ b/tests/data/renderer-heading-w.md
@@ -0,0 +1,11 @@
+# Milky Chance
+
+Clemens, Phillipp, Antonio
+
+## Flashed
+
+Lost our mind.
+
+### Junk Mind
+
+In the junkyard.
diff --git a/tests/data/renderer-heading.md b/tests/data/renderer-heading.md
new file mode 100644
index 0000000..382896d
--- /dev/null
+++ b/tests/data/renderer-heading.md
@@ -0,0 +1,11 @@
+# Milky Chance
+
+Clemens, Phillipp, Antonio
+
+## Flashed
+
+Lost our mind.
+
+### Junk Mind
+
+In the junkyard.
diff --git a/tests/data/renderer-lheading-w.md b/tests/data/renderer-lheading-w.md
new file mode 100644
index 0000000..13a5160
--- /dev/null
+++ b/tests/data/renderer-lheading-w.md
@@ -0,0 +1,13 @@
+Milky Chance
+============
+
+Clemens, Phillipp, Antonio
+
+Flashed
+-------
+
+Lost our mind.
+
+### Junk Mind
+
+In the junkyard.
diff --git a/tests/data/renderer-lheading.md b/tests/data/renderer-lheading.md
new file mode 100644
index 0000000..13a5160
--- /dev/null
+++ b/tests/data/renderer-lheading.md
@@ -0,0 +1,13 @@
+Milky Chance
+============
+
+Clemens, Phillipp, Antonio
+
+Flashed
+-------
+
+Lost our mind.
+
+### Junk Mind
+
+In the junkyard.
diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py
index a7a4bd0..3f5fa20 100644
--- a/tests/test_md_tw.py
+++ b/tests/test_md_tw.py
@@ -810,6 +810,15 @@ class TestTWRenderer(object):
self._validate(txt, expected_txt)
+ def test_render_header(self):
+ txt = self._md('renderer-heading.md')
+ expected_txt = self._get('renderer-heading-w.md')
+ self._validate(txt, expected_txt)
+
+ txt = self._md('renderer-lheading.md')
+ expected_txt = self._get('renderer-lheading-w.md')
+ self._validate(txt, expected_txt)
+
def teardown(self):
pass