diff --git a/src/MdToHtmlTest.hs b/src/MdToHtmlTest.hs index 71b2066..963abd8 100644 --- a/src/MdToHtmlTest.hs +++ b/src/MdToHtmlTest.hs @@ -23,7 +23,15 @@ boldTests = TestList [ check_equal "Should convert bold" "

Hello

" (convert "__Hello__"), check_equal "Should convert italic" "

Hello

" (convert "_Hello_"), - check_equal "Should convert bold and italic in a sentence" "

It is a wonderful day

" (convert "It _is_ a __wonderful__ day") + check_equal "Should convert bold and italic in a sentence" "

It is a wonderful day

" (convert "It _is_ a __wonderful__ day"), + check_equal "Should convert nested bold and italic" "

Bold then Italic

" (convert "**Bold then *Italic***"), + check_equal "Should convert nested bold and italic" "

Italic then Bold

" (convert "*Italic then **Bold***") + ] + +strikethroughTests = + TestList + [ check_equal "Should convert strikethrough" "

Hello

" (convert "~~Hello~~"), + check_equal "Should convert long sentence with tilde" "

The universe is ~7 days old. The universe is 13 billion years old.

" (convert "~~The universe is ~7 days old~~. The universe is 13 billion years old.") ] linkTests =