diff options
-rw-r--r-- | tests/data/renderer-lists-w.md | 63 | ||||
-rw-r--r-- | tests/data/renderer-lists.md | 66 | ||||
-rw-r--r-- | tests/test_md_tw.py | 6 |
3 files changed, 135 insertions, 0 deletions
diff --git a/tests/data/renderer-lists-w.md b/tests/data/renderer-lists-w.md new file mode 100644 index 0000000..e0f3eba --- /dev/null +++ b/tests/data/renderer-lists-w.md @@ -0,0 +1,63 @@ ++ Re: Your Brains ++ Shop Vac ++ Flickr + + +1. First of May +2. You Ruined Everything +3. Sucker Punch + + +* Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam + hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, + fringilla in, laoreet vitae, risus. +* Donec sit amet nisl. Aliquam semper ipsum sit amet velit. + Suspendisse id sem consectetuer libero luctus adipiscing. + + +* Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Aliquam + hendrerit mi posuere lectus. Vestibulum enim wisi, viverra nec, + fringilla in, laoreet vitae, risus. +* Donec sit amet nisl. Aliquam semper ipsum sit amet velit. + Suspendisse id sem consectetuer libero luctus adipiscing. + + +* Codey Monkey + +* Tom Cruise Crazy + + +1. This is a list item with two paragraphs. Lorem ipsum dolor sit amet, + consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus. + + Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, + risus. Donec sit amet nisl. Aliquam semper ipsum sit amet velit. + +2. Suspendisse id sem consectetuer libero luctus adipiscing. + + +* This is a list item with two paragraphs. + + This is the second paragraph in the list item. You're only required + to indent the first line. Lorem ipsum dolor sit amet, consectetuer + adipiscing elit. + +* Another item in the same list. + + +* A list item with a blockquote: + + > This is a blockquote inside a list item. + + +* A list item with a code block: + + $ :(){:|:&};: + + +1. This is a list item has a nested list. + + 1. Lorem ipsum dolor sit amet, consectetuer adipiscing elit. + Aliquam hendrerit mi posuere lectus. + + $ :(){:|:&};: diff --git a/tests/data/renderer-lists.md b/tests/data/renderer-lists.md new file mode 100644 index 0000000..2a9a0dd --- /dev/null +++ b/tests/data/renderer-lists.md @@ -0,0 +1,66 @@ ++ Re: Your Brains ++ Shop Vac ++ Flickr + + +1. First of May +2. You Ruined Everything +3. Sucker Punch + + +* Lorem ipsum dolor sit amet, consectetuer adipiscing elit. + Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, + viverra nec, fringilla in, laoreet vitae, risus. +* Donec sit amet nisl. Aliquam semper ipsum sit amet velit. + Suspendisse id sem consectetuer libero luctus adipiscing. + + +* Lorem ipsum dolor sit amet, consectetuer adipiscing elit. +Aliquam hendrerit mi posuere lectus. Vestibulum enim wisi, +viverra nec, fringilla in, laoreet vitae, risus. +* Donec sit amet nisl. Aliquam semper ipsum sit amet velit. +Suspendisse id sem consectetuer libero luctus adipiscing. + + +* Codey Monkey + +* Tom Cruise Crazy + + +1. This is a list item with two paragraphs. Lorem ipsum dolor + sit amet, consectetuer adipiscing elit. Aliquam hendrerit + mi posuere lectus. + + Vestibulum enim wisi, viverra nec, fringilla in, laoreet + vitae, risus. Donec sit amet nisl. Aliquam semper ipsum + sit amet velit. + +2. Suspendisse id sem consectetuer libero luctus adipiscing. + + +* This is a list item with two paragraphs. + + This is the second paragraph in the list item. You're +only required to indent the first line. Lorem ipsum dolor +sit amet, consectetuer adipiscing elit. + +* Another item in the same list. + + +* A list item with a blockquote: + + > This is a blockquote + > inside a list item. + + +* A list item with a code block: + + $ :(){:|:&};: + + +1. This is a list item has a nested list. + + 1. Lorem ipsum dolor sit amet, consectetuer adipiscing + elit. Aliquam hendrerit mi posuere lectus. + + $ :(){:|:&};: diff --git a/tests/test_md_tw.py b/tests/test_md_tw.py index d1e0833..a7a4bd0 100644 --- a/tests/test_md_tw.py +++ b/tests/test_md_tw.py @@ -804,6 +804,12 @@ class TestTWRenderer(object): self._validate(txt, expected_txt) + def test_render_list(self): + txt = self._md('renderer-lists.md') + expected_txt = self._get('renderer-lists-w.md') + + self._validate(txt, expected_txt) + def teardown(self): pass |