Skip to content

Commit

Permalink
add more tests to Markdown
Browse files Browse the repository at this point in the history
  • Loading branch information
ConeDragon authored Jun 23, 2024
1 parent 367faf4 commit 185d570
Showing 1 changed file with 8 additions and 0 deletions.
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

0 comments on commit 185d570

Please sign in to comment.