From bfd627c7632059e96b661e2741584106159c2d21 Mon Sep 17 00:00:00 2001 From: Rockingcool Date: Thu, 8 May 2025 17:53:37 -0500 Subject: [PATCH] Added blockquote tests --- src/Test.hs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) 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" "

What a truly lovely day!!!

" (convert "> What a __truly__ _lovely_ day!!!"), + check_equal "Simple nested blockquotes" "

Hello

World

" (convert "> Hello\n>\n>> World"), + check_equal + "Nested blockquotes" + "

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.

" + ( 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" "

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_"), @@ -55,6 +72,7 @@ tests = boldTests, linkTests, escapedCharTests, + blockquoteTests, integrationTests ]