Skip to content

Commit f9f8603

Browse files
committed
Add test
1 parent 3aa07ea commit f9f8603

File tree

4 files changed

+17
-0
lines changed

4 files changed

+17
-0
lines changed

tests/Hakyll/Web/Template/Tests.hs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ tests :: TestTree
2929
tests = testGroup "Hakyll.Core.Template.Tests" $ concat
3030
[ [ testCase "case01" $ test ("template.html.out", "template.html", "example.md")
3131
, testCase "case02" $ test ("strip.html.out", "strip.html", "example.md")
32+
, testCase "case03" $ test ("just-meta.html.out", "just-meta.html", "example.md")
3233
, testCase "applyJoinTemplateList" testApplyJoinTemplateList
3334
]
3435

tests/data/example.md.metadata

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
external: External data
22
date: 2012-10-22 14:35:24
33
subblog: food
4+
intfield: 42
5+
numfield: 3.14

tests/data/just-meta.html

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<pre>
2+
external: {$external$}
3+
date: {$date$}
4+
subblog: {$subblog$}
5+
intfield: {$intfield$}
6+
numfield: {$numfield$}
7+
</pre>

tests/data/just-meta.html.out

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<pre>
2+
external: {External data}
3+
date: {2012-10-22 14:35:24}
4+
subblog: {food}
5+
intfield: {42}
6+
numfield: {3.14}
7+
</pre>

0 commit comments

Comments
 (0)