| 1 |
-------------------------------------------------------------------------------- |
| 2 |
{-# LANGUAGE OverloadedStrings #-} |
| 3 |
module Hakyll.Web.Pandoc.FileType.Tests |
| 4 |
( tests |
| 5 |
) where |
| 6 |
|
| 7 |
|
| 8 |
-------------------------------------------------------------------------------- |
| 9 |
import Test.Tasty (TestTree, testGroup) |
| 10 |
import Test.Tasty.HUnit ((@=?)) |
| 11 |
|
| 12 |
|
| 13 |
-------------------------------------------------------------------------------- |
| 14 |
import Hakyll.Web.Pandoc.FileType |
| 15 |
import TestSuite.Util |
| 16 |
|
| 17 |
|
| 18 |
-------------------------------------------------------------------------------- |
| 19 |
tests :: TestTree |
| 20 |
tests = testGroup "Hakyll.Web.Pandoc.FileType.Tests" $ |
| 21 |
fromAssertions "fileType" |
| 22 |
[ Jupyter @=? fileType "index.ipynb" |
| 23 |
, Markdown @=? fileType "index.md" |
| 24 |
, Rst @=? fileType "about/foo.rst" |
| 25 |
, LiterateHaskell Markdown @=? fileType "posts/bananas.lhs" |
| 26 |
, LiterateHaskell LaTeX @=? fileType "posts/bananas.tex.lhs" |
| 27 |
] |