From afedb41b170cd9198ab589567f39e99717667a31 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 10 Sep 2017 12:42:24 +0300 Subject: Muse reader: trim newlines from s --- test/Tests/Readers/Muse.hs | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'test/Tests') diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index 6f602d7c3..43a1d0697 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -230,6 +230,31 @@ tests = lineBlock [ "Foo bar" ] <> lineBlock [ "Foo bar" ] <> lineBlock [ "\160\160\160Foo" ] + , testGroup "Example tag" + [ "Tags on separate lines" =: + T.unlines [ "" + , "Example line" + , "" + ] =?> + codeBlock "Example line" + , "One line" =: + "Example line" =?> + codeBlock "Example line" + , "One blank line in the beginning" =: + T.unlines [ "" + , "" + , "Example line" + , "" + ] =?> + codeBlock "\nExample line" + , "One blank line in the end" =: + T.unlines [ "" + , "Example line" + , "" + , "" + ] =?> + codeBlock "Example line\n" + ] , "Center" =: "
Hello, world
" =?> para (text "Hello, world") , "Right" =: "Hello, world" =?> para (text "Hello, world") , testGroup "Comments" -- cgit v1.2.3