Muse reader: test <literal> blocks

This commit is contained in:
Alexander Krotov 2017-11-21 19:01:36 +03:00
parent 046f5bcc81
commit 59f537c31f

View file

@ -303,6 +303,20 @@ tests =
] =?>
codeBlock "Example line\n"
]
, testGroup "Literal blocks"
[ test emacsMuse "Literal block"
(T.unlines [ "<literal style=\"latex\">"
, "\\newpage"
, "</literal>"
] =?>
rawBlock "latex" "\\newpage")
, "No literal blocks in Text::Amuse" =:
T.unlines [ "<literal style=\"latex\">"
, "\\newpage"
, "</literal>"
] =?>
para "<literal style=\"latex\">\n\\newpage\n</literal>"
]
, "Center" =: "<center>Hello, world</center>" =?> para (text "Hello, world")
, "Right" =: "<right>Hello, world</right>" =?> para (text "Hello, world")
, testGroup "Comments"