pandoc/tests/Tests/Writers/Plain.hs
John MacFarlane c423dbb5a3 Use -XNoImplicitPrelude and 'import Prelude' explicitly.
This is needed for ghci to work with pandoc, given that we
now use a custom prelude.

Closes #2503.
2015-11-08 16:56:59 -08:00

22 lines
468 B
Haskell

{-# LANGUAGE OverloadedStrings #-}
module Tests.Writers.Plain (tests) where
import Prelude
import Test.Framework
import Text.Pandoc.Builder
import Text.Pandoc
import Tests.Helpers
import Tests.Arbitrary()
infix 4 =:
(=:) :: (ToString a, ToPandoc a)
=> String -> (a, String) -> Test
(=:) = test (writePlain def . toPandoc)
tests :: [Test]
tests = [ "strongly emphasized text to uppercase"
=: strong "Straße"
=?> "STRASSE"
]