From c2b97c4b8026694d9c59d7b9f6d333d204f669ce Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 11 Sep 2018 00:38:55 +0300 Subject: Muse writer: use tags instead of lightweight markup for empty strings --- test/Tests/Writers/Muse.hs | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'test') diff --git a/test/Tests/Writers/Muse.hs b/test/Tests/Writers/Muse.hs index 29f771cf5..c747578bf 100644 --- a/test/Tests/Writers/Muse.hs +++ b/test/Tests/Writers/Muse.hs @@ -362,6 +362,10 @@ tests = [ testGroup "block elements" , "empty strong" =: strong mempty =?> "" , "empty strong emphasis" =: strong (emph mempty) =?> "****" , "empty emphasized strong" =: emph (strong mempty) =?> "**" + , "emphasized empty string" =: emph (str "") =?> "" + , "strong empty string" =: strong (str "") =?> "" + , "strong emphasized empty string" =: strong (emph (str "")) =?> "****" + , "emphasized strong empty string" =: emph (strong (str "")) =?> "**" , "strong" =: strong (text "foo") =?> "**foo**" , "strong inside word" =: text "foo" <> strong (text "bar") <> text "baz" =?> "foobarbaz" , "strong emphasis" =: strong (emph (text "foo")) =?> "***foo***" -- cgit v1.2.3