From bd2bd9b19d949f59a64358f756bf8b398a13db0f Mon Sep 17 00:00:00 2001 From: Amogh Rathore Date: Tue, 5 Nov 2019 01:42:30 +0900 Subject: HTML Reader/Writer - Add support for and (#5861) Closes #5799 --- test/Tests/Writers/HTML.hs | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'test/Tests/Writers') diff --git a/test/Tests/Writers/HTML.hs b/test/Tests/Writers/HTML.hs index 94549e0d8..f3c7b87fd 100644 --- a/test/Tests/Writers/HTML.hs +++ b/test/Tests/Writers/HTML.hs @@ -61,6 +61,28 @@ tests = [ testGroup "inline code" doubleQuoted (spanWith ("", [], [("cite", "http://example.org")]) (str "examples")) =?> "examples" ] + , testGroup "sample" + [ "sample should be rendered correctly" =: + plain (codeWith ("",["sample"],[]) "Answer is 42") =?> + "Answer is 42" + ] + , testGroup "variable" + [ "variable should be rendered correctly" =: + plain (codeWith ("",["variable"],[]) "result") =?> + "result" + ] + , testGroup "sample with style" + [ "samp should wrap highlighted code" =: + codeWith ("",["sample","haskell"],[]) ">>=" + =?> ("" ++ + ">>=") + ] + , testGroup "variable with style" + [ "var should wrap highlighted code" =: + codeWith ("",["haskell","variable"],[]) ">>=" + =?> ("" ++ + ">>=") + ] ] where tQ :: (ToString a, ToPandoc a) -- cgit v1.2.3