diff options
Diffstat (limited to 'tests/Tests/Writers')
| -rw-r--r-- | tests/Tests/Writers/LaTeX.hs | 5 | ||||
| -rw-r--r-- | tests/Tests/Writers/Markdown.hs | 4 | 
2 files changed, 9 insertions, 0 deletions
| diff --git a/tests/Tests/Writers/LaTeX.hs b/tests/Tests/Writers/LaTeX.hs index 5f702a85d..8a9519e2e 100644 --- a/tests/Tests/Writers/LaTeX.hs +++ b/tests/Tests/Writers/LaTeX.hs @@ -39,6 +39,11 @@ tests = [ testGroup "code blocks"            , test latexListing "no identifier" $ codeBlock "hi" =?>              ("\\begin{lstlisting}\nhi\n\\end{lstlisting}" :: String)            ] +        , testGroup "definition lists" +          [ "with internal link" =: definitionList [(link "#go" "" (str "testing"), +             [plain (text "hi there")])] =?> +            "\\begin{description}\n\\itemsep1pt\\parskip0pt\\parsep0pt\n\\item[{\\hyperref[go]{testing}}]\nhi there\n\\end{description}" +          ]          , testGroup "math"            [ "escape |" =: para (math "\\sigma|_{\\{x\\}}") =?>              "$\\sigma|_{\\{x\\}}$" diff --git a/tests/Tests/Writers/Markdown.hs b/tests/Tests/Writers/Markdown.hs index 99b85dfb7..c2a8f5903 100644 --- a/tests/Tests/Writers/Markdown.hs +++ b/tests/Tests/Writers/Markdown.hs @@ -31,4 +31,8 @@ tests :: [Test]  tests = [ "indented code after list"               =: (orderedList [ para "one" <> para "two" ] <> codeBlock "test")               =?> "1.  one\n\n    two\n\n<!-- -->\n\n    test" +        , "list with tight sublist" +             =: bulletList [ plain "foo" <> bulletList [ plain "bar" ], +                             plain "baz" ] +             =?> "-   foo\n    -   bar\n-   baz\n"          ] | 
