aboutsummaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorAlexander Krotov <ilabdsf@gmail.com>2018-03-07 16:27:56 +0300
committerAlexander Krotov <ilabdsf@gmail.com>2018-03-07 18:35:04 +0300
commitf8e255053de09786c6c251e38387663750ddd3ac (patch)
tree4dec6a950d96a9002a1f396ebe9dcc981ef54a23 /test
parent39b31ef3cb6f227bc17f923cc00597ca70298820 (diff)
downloadpandoc-f8e255053de09786c6c251e38387663750ddd3ac.tar.gz
Muse writer: write empty inline lists as <verbatim></verbatim>
Diffstat (limited to 'test')
-rw-r--r--test/Tests/Writers/Muse.hs9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Tests/Writers/Muse.hs b/test/Tests/Writers/Muse.hs
index ab5eaa205..68eb9759f 100644
--- a/test/Tests/Writers/Muse.hs
+++ b/test/Tests/Writers/Muse.hs
@@ -101,6 +101,15 @@ tests = [ testGroup "block elements"
, " :: second description"
, " second definition :: third description"
]
+ , "definition list with empty term" =:
+ definitionList [ (text "first definition", [plain $ text "first description"])
+ , (mempty, [plain $ text "second description"])
+ , (str "", [plain $ text "third description"])
+ ]
+ =?> unlines [ " first definition :: first description"
+ , " <verbatim></verbatim> :: second description"
+ , " <verbatim></verbatim> :: third description"
+ ]
]
-- Test that lists of the same type and style are separated with two blanklines
, testGroup "sequential lists"