2014-08-03 16:48:55 +04:00
|
|
|
{-# LANGUAGE OverloadedStrings #-}
|
|
|
|
module Tests.Writers.Plain (tests) where
|
|
|
|
|
2017-03-14 17:05:36 +01:00
|
|
|
import Test.Tasty
|
2014-08-03 16:48:55 +04:00
|
|
|
import Tests.Helpers
|
2017-03-04 13:03:41 +01:00
|
|
|
import Text.Pandoc
|
|
|
|
import Text.Pandoc.Arbitrary ()
|
|
|
|
import Text.Pandoc.Builder
|
2014-08-03 16:48:55 +04:00
|
|
|
|
|
|
|
|
|
|
|
infix 4 =:
|
|
|
|
(=:) :: (ToString a, ToPandoc a)
|
2017-03-14 17:05:36 +01:00
|
|
|
=> String -> (a, String) -> TestTree
|
2016-11-27 11:52:42 +01:00
|
|
|
(=:) = test (purely (writePlain def) . toPandoc)
|
2014-08-03 16:48:55 +04:00
|
|
|
|
|
|
|
|
2017-03-14 17:05:36 +01:00
|
|
|
tests :: [TestTree]
|
2014-08-03 16:48:55 +04:00
|
|
|
tests = [ "strongly emphasized text to uppercase"
|
|
|
|
=: strong "Straße"
|
|
|
|
=?> "STRASSE"
|
|
|
|
]
|