diff options
author | rsiddharth <s@ricketyspace.net> | 2017-02-22 03:53:20 +0000 |
---|---|---|
committer | rsiddharth <s@ricketyspace.net> | 2017-02-22 03:53:20 +0000 |
commit | 198fdb6707f4bb8249da4ca1bf6b2bc65a3b1095 (patch) | |
tree | 97acd219837fe12734d6e27c7e981881a4d309b0 | |
parent | 4e645f0a298fa061899eafd10722534beb305189 (diff) |
tests: Update `test_mdl_style.TestLSRendererIL` class.
* tests/data/does_not_parse_code_00.md: Add file.
* tests/data/does_not_parse_emphasis_00.md: Add file.
* tests/test_mdl_style.py
(TestLSRendererIL.test_renderer_does_not_parse_emphasis)
(TestLSRendererIL.test_renderer_does_not_parse_code): Add methods.
-rw-r--r-- | tests/data/does_not_parse_code_00.md | 11 | ||||
-rw-r--r-- | tests/data/does_not_parse_emphasis_00.md | 15 | ||||
-rw-r--r-- | tests/test_mdl_style.py | 8 |
3 files changed, 34 insertions, 0 deletions
diff --git a/tests/data/does_not_parse_code_00.md b/tests/data/does_not_parse_code_00.md new file mode 100644 index 0000000..dcfd58c --- /dev/null +++ b/tests/data/does_not_parse_code_00.md @@ -0,0 +1,11 @@ +Use the `printf()` function. + +``There is a literal backtick (`) here.`` + +A single backtick in a code span: `` ` `` + +A backtick-delimited string in a code span: `` `foo` `` + +Please don't use any `<blink>` tags. + +`—` is the decimal-encoded equivalent of `—`. diff --git a/tests/data/does_not_parse_emphasis_00.md b/tests/data/does_not_parse_emphasis_00.md new file mode 100644 index 0000000..6a102bd --- /dev/null +++ b/tests/data/does_not_parse_emphasis_00.md @@ -0,0 +1,15 @@ +Curabitur consequat nibh eget lobortis congue. Vestibulum sem orci, +dignissim sit amet porta a, consectetur vel enim. Etiam laoreet +pharetra ipsum, *sed lobortis* urna maximus a. + +Quisque _tortor mi_, sagittis quis finibus vel, porta nec velit. Donec +luctus tristique hendrerit. + +Ut vestibulum nisl **sit amet** turpis aliquet blandit a sit amet +massa. + +__Integer in massa__ non lacus eleifend dignissim. Integer aliquam +vehicula orci, sed auctor nulla lacinia eu. + +Pell*entes*que quis venenatis est. Morbi porttitor lorem sed lacus +mollis efficitur. diff --git a/tests/test_mdl_style.py b/tests/test_mdl_style.py index 94cdd75..3171dc7 100644 --- a/tests/test_mdl_style.py +++ b/tests/test_mdl_style.py @@ -76,6 +76,14 @@ class TestLSRendererIL(object): d = _get_data('does_not_parse_hrules_00.md') assert_equal(self.md(d), d) + def test_renderer_does_not_parse_emphasis(self): + d = _get_data('does_not_parse_emphasis_00.md') + assert_equal(self.md(d), d) + + def test_renderer_does_not_parse_code(self): + d = _get_data('does_not_parse_code_00.md') + assert_equal(self.md(d), d) + def teardown(self): pass |