summaryrefslogtreecommitdiff
path: root/tests/Hakyll/Web/Template
diff options
context:
space:
mode:
authorLaurent P. René de Cotret <LaurentRDC@users.noreply.github.com>2020-05-30 08:14:21 -0400
committerGitHub <noreply@github.com>2020-05-30 14:14:21 +0200
commit8afbb62ed5e969d78d8664df205646504f52f278 (patch)
tree3a2d9046a39eb239183832f43bd7121b5b7fd16e /tests/Hakyll/Web/Template
parent9656e78869dd8248a8558671a48d2e52dbe7edb5 (diff)
downloadhakyll-8afbb62ed5e969d78d8664df205646504f52f278.tar.gz
Miscellaneous Windows-specific fixes and CI
Diffstat (limited to 'tests/Hakyll/Web/Template')
-rw-r--r--tests/Hakyll/Web/Template/Tests.hs6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/Hakyll/Web/Template/Tests.hs b/tests/Hakyll/Web/Template/Tests.hs
index a73b92d..1c7c571 100644
--- a/tests/Hakyll/Web/Template/Tests.hs
+++ b/tests/Hakyll/Web/Template/Tests.hs
@@ -12,6 +12,7 @@ import Test.Tasty.HUnit (Assertion, assertBool, testCase,
(@=?), (@?=))
import Data.Either (isLeft)
+import System.IO (nativeNewline, Newline(..))
--------------------------------------------------------------------------------
import Hakyll.Core.Compiler
@@ -149,8 +150,11 @@ testEmbeddedTemplate = do
str <- testCompilerDone store provider "item3" $
applyTemplate embeddedTemplate defaultContext item
- itemBody str @?= "<p>Hello, world</p>\n"
+ itemBody str @?= ("<p>Hello, world</p>" ++ (newline nativeNewline))
cleanTestEnv
where
item = Item "item1" "Hello, world"
+
+ newline LF = "\n"
+ newline CRLF = "\r\n"