Skip to content

Commit

Permalink
Add additional test
Browse files Browse the repository at this point in the history
I know that this is going to pass
  • Loading branch information
mandaris committed Dec 17, 2019
1 parent 2f2df3a commit 3466cd4
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions test/test_MKImg2Fig.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,3 +21,22 @@ def test_empty_input(self):
outString = markdown.markdown(
inString, extensions=[MKImg2Fig.MKImg2FigExtension()])
self.assertEqual(inString, outString)

def test_no_images(self):
inString = """\
This is a test text.
It contains multiple paragraphs as well as [links](https://example.com).
* Itemize
* is
* used,
* as well.
# This is a headline.
Taken from yafg test suite"""
expectedString = markdown.markdown(inString)
outString = markdown.markdown(
inString, extensions=[MKImg2Fig.MKImg2FigExtension()])
self.assertEqual(expectedString, outString)

0 comments on commit 3466cd4

Please sign in to comment.