{-# LANGUAGE OverloadedStrings #-} module Hakyll.Web.Template.Tests ( tests ) where import Test.Framework import Test.Framework.Providers.HUnit import Test.HUnit hiding (Test) import qualified Data.Map as M import Hakyll.Web.Page import Hakyll.Web.Template import Hakyll.Web.Template.Read import TestSuite.Util tests :: [Test] tests = fromAssertions "applyTemplate" -- Hakyll templates [ applyTemplateAssertion readTemplate "bar" "$foo$" [("foo", "bar")] , applyTemplateAssertion readTemplate "$ barqux" "$$ $foo$$bar$" [("foo", "bar"), ("bar", "qux")] -- Hamlet templates , applyTemplateAssertion readHamletTemplate "