diff --git a/src/MdToHtmlTest.hs b/src/MdToHtmlTest.hs index 084cf1e..f36c6d8 100644 --- a/src/MdToHtmlTest.hs +++ b/src/MdToHtmlTest.hs @@ -93,6 +93,13 @@ orderedListTests = check_equal "Unordered list in ordered list" "
  1. Item 1
  2. Item 2
  3. Item 3
" (convert "1. Item 1\n2. Item 2\n - Item 1\n * Item 2\n4. Item 3") ] +codeTests = + TestList + [ check_equal "Code by itself" "

Hello world!

" (convert "`Hello world!`"), + check_equal "Code in a paragraph" "

The following text is code

" (convert "The following `text` is code"), + check_equal "Code across paragraphs (shouldn't work" "

`Incomplete

Code`

" (convert "`Incomplete\n\nCode`") + ] + integrationTests = TestList [ check_equal "Integration 1" "

Sample Markdown

This is some basic, sample markdown.

Second Heading

" (convert "# Sample Markdown\n\n This is some basic, sample markdown.\n\n ## __Second__ _Heading_"), @@ -127,6 +134,7 @@ tests = blockquoteTests, unorderedListTests, orderedListTests, + codeTests, integrationTests ]