From e6f767b581742343bd7319bcc4c3632e18c58a70 Mon Sep 17 00:00:00 2001 From: Alexander Date: Fri, 25 Aug 2017 17:09:28 +0300 Subject: Muse reader: parse tag (#3872) --- test/Tests/Readers/Muse.hs | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'test') diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index 8d4ad0b15..1f3218daf 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -147,6 +147,27 @@ tests = blockQuote (para "This is a quotation with a continuation") ] , "Quote tag" =: "Hello, world" =?> blockQuote (para $ text "Hello, world") + , "Verse tag" =: + T.unlines [ "" + , "" + , "Foo bar baz" + , " One two three" + , "" + , "" + , "Foo bar" + , "" + , "Foo bar" + , "" + , " Foo" + ] =?> + lineBlock [ "" + , text "Foo bar baz" + , text "\160\160One two three" + , "" + ] <> + lineBlock [ "Foo bar" ] <> + lineBlock [ "Foo bar" ] <> + lineBlock [ "\160\160\160Foo" ] , "Center" =: "
Hello, world
" =?> para (text "Hello, world") , "Right" =: "Hello, world" =?> para (text "Hello, world") , testGroup "Comments" -- cgit v1.2.3