From 165a61095c08794d1639a683f1c6f1a82387c8d5 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 11 Sep 2018 11:49:11 +0300 Subject: Muse writer: check for whitespace in the beginning and end of Str's --- test/Tests/Writers/Muse.hs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'test/Tests') diff --git a/test/Tests/Writers/Muse.hs b/test/Tests/Writers/Muse.hs index a8ccd6d87..4cb7618f3 100644 --- a/test/Tests/Writers/Muse.hs +++ b/test/Tests/Writers/Muse.hs @@ -382,6 +382,9 @@ tests = [ testGroup "block elements" , "strong empty string" =: strong (str "") =?> "" , "strong emphasized empty string" =: strong (emph (str "")) =?> "****" , "emphasized strong empty string" =: emph (strong (str "")) =?> "**" + , "emphasized string with space" =: emph (str " ") =?> " " + , "emphasized string ending with space" =: emph (str "foo ") =?> "foo " + , "emphasized string with tab" =: emph (str "\t") =?> "\t" , "emphasized space between empty strings" =: emph (str "" <> space <> str "") =?> " " , "strong" =: strong (text "foo") =?> "**foo**" , "strong inside word" =: text "foo" <> strong (text "bar") <> text "baz" =?> "foobarbaz" -- cgit v1.2.3