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

Update markdown_test.py #3755

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
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>",
)