diff --git a/src/Test.hs b/src/Test.hs index 60d2365..cadcc40 100644 --- a/src/Test.hs +++ b/src/Test.hs @@ -39,6 +39,23 @@ escapedCharTests = check_equal "Should print literal asterisk in bold" "
This is a bolded asterisk - *
" (convert "This is a bolded asterisk - **\\***") ] +blockquoteTests = + TestList + [ check_equal "Should wrap para in blockquote" "" (convert "> What a __truly__ _lovely_ day!!!"), + check_equal "Simple nested blockquotes" "What a truly lovely day!!!
" (convert "> Hello\n>\n>> World"), + check_equal + "Nested blockquotes" + "Hello
World
" + ( convert + "> Dorothy followed her through many of the \ + \beautiful rooms in her castle.\n> \n>> The Witch bade her \ + \clean the pots and kettles and sweep the floor and keep the fire fed with wood." + ) + ] + integrationTests = TestList [ check_equal "Integration 1" "Dorothy followed her through many \ + \of the beautiful rooms in her castle.
The Witch \ + \bade her clean the pots and kettles and sweep the floor and keep the fire \ + \fed with wood.
This is some basic, sample markdown.