From 59f537c31f4fedcc37b30260c804456289305175 Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Tue, 21 Nov 2017 19:01:36 +0300 Subject: Muse reader: test blocks --- test/Tests/Readers/Muse.hs | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'test') diff --git a/test/Tests/Readers/Muse.hs b/test/Tests/Readers/Muse.hs index c76013b90..e260e4bea 100644 --- a/test/Tests/Readers/Muse.hs +++ b/test/Tests/Readers/Muse.hs @@ -303,6 +303,20 @@ tests = ] =?> codeBlock "Example line\n" ] + , testGroup "Literal blocks" + [ test emacsMuse "Literal block" + (T.unlines [ "" + , "\\newpage" + , "" + ] =?> + rawBlock "latex" "\\newpage") + , "No literal blocks in Text::Amuse" =: + T.unlines [ "" + , "\\newpage" + , "" + ] =?> + para "\n\\newpage\n" + ] , "Center" =: "
Hello, world
" =?> para (text "Hello, world") , "Right" =: "Hello, world" =?> para (text "Hello, world") , testGroup "Comments" -- cgit v1.2.3