Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Markdown] add more tests to Markdown #3718

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions exercises/practice/markdown/markdown_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,14 @@ def test_with_markdown_symbols_in_the_paragraph_text_that_should_not_be_interpre
"<p>This is a paragraph with # and * in the text</p>",
)

def test_with_markdown_symbols_in_more_paragraph_text_that_should_not_be_interpreted(
self,
):
self.assertEqual(
parse("This is a paragraph with _ and * in the text\nThis is another paragraph with __ and # in the text"),
"<p>This is a paragraph with _ and * in the text</p><p>This is another paragraph with __ and # in the text</p>",
)

def test_unordered_lists_close_properly_with_preceding_and_following_lines(self):
self.assertEqual(
parse("# Start a list\n* Item 1\n* Item 2\nEnd a list"),
Expand Down