From bdad8c1d690f791ca5ef36aee07c9874fcf50e53 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 26 Nov 2017 07:32:59 +0300 Subject: Muse reader: drop common space prefix from list items --- test/Tests/Readers/Muse.hs | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'test') diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index ee910a450..1f4a9e599 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -342,6 +342,24 @@ tests = , "" ] =?> codeBlock "Example line\n" + , "Example inside list" =: + T.unlines [ " - " + , " foo" + , " " + ] =?> + bulletList [ codeBlock "foo" ] + , "Indented example inside list" =: + T.unlines [ " - " + , " foo" + , " " + ] =?> + bulletList [ codeBlock "foo" ] + , "Example inside definition list" =: + T.unlines [ " foo :: " + , " bar" + , " " + ] =?> + definitionList [ ("foo", [codeBlock "bar"]) ] ] , testGroup "Literal blocks" [ test emacsMuse "Literal block" -- cgit v1.2.3