From 8afbb62ed5e969d78d8664df205646504f52f278 Mon Sep 17 00:00:00 2001 From: "Laurent P. René de Cotret" Date: Sat, 30 May 2020 08:14:21 -0400 Subject: Miscellaneous Windows-specific fixes and CI --- tests/Hakyll/Web/Template/Tests.hs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests/Hakyll/Web/Template') 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 @?= "

Hello, world

\n" + itemBody str @?= ("

Hello, world

" ++ (newline nativeNewline)) cleanTestEnv where item = Item "item1" "Hello, world" + + newline LF = "\n" + newline CRLF = "\r\n" -- cgit v1.2.3