Skip to content

Commit

Permalink
Update markdown_test.py
Browse files Browse the repository at this point in the history
Add test to check if two unordered lists are separated properly
  • Loading branch information
b3dwyr authored Aug 21, 2024
1 parent adaa483 commit 0471ac9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions exercises/practice/markdown/markdown_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,9 @@ def test_unordered_lists_close_properly_with_preceding_and_following_lines(self)
parse("# Start a list\n* Item 1\n* Item 2\nEnd a list"),
"<h1>Start a list</h1><ul><li>Item 1</li><li>Item 2</li></ul><p>End a list</p>",
)

def test_two_unordered_lists_separated_properly(self):
self.assertEqual(
parse("# Start list 1\n* Item 1\nEnd list 1\n# Start list 2\n* Item 1\n* Item 2\nEnd list 2"),
"<h1>Start list 1</h1><ul><li>Item 1</li></ul><p>End list 1</p><h1>Start list 2</h1><ul><li>Item 1</li><li>Item 2</li></ul><p>End list 2</p>",
)

0 comments on commit 0471ac9

Please sign in to comment.