diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-08-03 11:48:21 -0700 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-08-03 11:48:21 -0700 |
commit | cafc3c6e6c410d2a5ba874e8738e5e449a3b6580 (patch) | |
tree | 95417543eadc50a6cf52218e2ae1f3a078a65a90 /tests/Tests/Writers/Plain.hs | |
parent | 842c705097fbb3987145eae85da2261cb264e618 (diff) | |
parent | f6cf8e8b4bc494ef9329f790039b74b55897f308 (diff) | |
download | pandoc-cafc3c6e6c410d2a5ba874e8738e5e449a3b6580.tar.gz |
Merge pull request #1479 from Aelve/capitalise
Correctly implement capitalisation.
Diffstat (limited to 'tests/Tests/Writers/Plain.hs')
-rw-r--r-- | tests/Tests/Writers/Plain.hs | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/Tests/Writers/Plain.hs b/tests/Tests/Writers/Plain.hs new file mode 100644 index 000000000..f8f1d3d90 --- /dev/null +++ b/tests/Tests/Writers/Plain.hs @@ -0,0 +1,21 @@ +{-# LANGUAGE OverloadedStrings #-} +module Tests.Writers.Plain (tests) where + +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" + ] |