From 198fdb6707f4bb8249da4ca1bf6b2bc65a3b1095 Mon Sep 17 00:00:00 2001 From: rsiddharth Date: Wed, 22 Feb 2017 03:53:20 +0000 Subject: 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. --- tests/data/does_not_parse_code_00.md | 11 +++++++++++ tests/data/does_not_parse_emphasis_00.md | 15 +++++++++++++++ tests/test_mdl_style.py | 8 ++++++++ 3 files changed, 34 insertions(+) create mode 100644 tests/data/does_not_parse_code_00.md create mode 100644 tests/data/does_not_parse_emphasis_00.md 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 `` 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 -- cgit v1.2.3