diff options
author | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-01-28 11:36:59 +0100 |
---|---|---|
committer | Jasper Van der Jeugt <m@jaspervdj.be> | 2013-01-28 11:36:59 +0100 |
commit | eaa190f1e3029573a4bf4ecf238d3b8c236ad4fa (patch) | |
tree | ea63c637390fab385020fe496e0f806c1e8ffdeb /tests/Hakyll | |
parent | d2d52133f6815b1f1516c98c156bbe1abd2b559b (diff) | |
download | hakyll-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.hs | 26 |
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" + ] |