summaryrefslogtreecommitdiff
path: root/tests/Hakyll
diff options
context:
space:
mode:
authorJasper Van der Jeugt <m@jaspervdj.be>2013-01-28 11:36:59 +0100
committerJasper Van der Jeugt <m@jaspervdj.be>2013-01-28 11:36:59 +0100
commiteaa190f1e3029573a4bf4ecf238d3b8c236ad4fa (patch)
treeea63c637390fab385020fe496e0f806c1e8ffdeb /tests/Hakyll
parentd2d52133f6815b1f1516c98c156bbe1abd2b559b (diff)
downloadhakyll-eaa190f1e3029573a4bf4ecf238d3b8c236ad4fa.tar.gz
Fix .tex.lhs patch, add some test cases
Diffstat (limited to 'tests/Hakyll')
-rw-r--r--tests/Hakyll/Web/Pandoc/FileType/Tests.hs26
1 files changed, 26 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/Pandoc/FileType/Tests.hs b/tests/Hakyll/Web/Pandoc/FileType/Tests.hs
new file mode 100644
index 0000000..e6b222f
--- /dev/null
+++ b/tests/Hakyll/Web/Pandoc/FileType/Tests.hs
@@ -0,0 +1,26 @@
+--------------------------------------------------------------------------------
+{-# LANGUAGE OverloadedStrings #-}
+module Hakyll.Web.Pandoc.FileType.Tests
+ ( tests
+ ) where
+
+
+--------------------------------------------------------------------------------
+import Test.Framework (Test, testGroup)
+import Test.HUnit ((@=?))
+
+
+--------------------------------------------------------------------------------
+import Hakyll.Web.Pandoc.FileType
+import TestSuite.Util
+
+
+--------------------------------------------------------------------------------
+tests :: Test
+tests = testGroup "Hakyll.Web.Pandoc.FileType.Tests" $
+ fromAssertions "fileType"
+ [ Markdown @=? fileType "index.md"
+ , Rst @=? fileType "about/foo.rst"
+ , LiterateHaskell Markdown @=? fileType "posts/bananas.lhs"
+ , LiterateHaskell LaTeX @=? fileType "posts/bananas.tex.lhs"
+ ]