on master help sign in
Add test
f9f8603Nikolaos S. Papaspyrou
tests/Hakyll/Web/Template/Tests.hs+1
@@ -29,6 +29,7 @@ tests :: TestTree
29tests = testGroup "Hakyll.Core.Template.Tests" $ concat
29tests = testGroup "Hakyll.Core.Template.Tests" $ concat
30 [ [ testCase "case01" $ test ("template.html.out", "template.html", "example.md")
30 [ [ testCase "case01" $ test ("template.html.out", "template.html", "example.md")
31 , testCase "case02" $ test ("strip.html.out", "strip.html", "example.md")
31 , testCase "case02" $ test ("strip.html.out", "strip.html", "example.md")
32+ , testCase "case03" $ test ("just-meta.html.out", "just-meta.html", "example.md")
32 , testCase "applyJoinTemplateList" testApplyJoinTemplateList
33 , testCase "applyJoinTemplateList" testApplyJoinTemplateList
33 ]
34 ]
34
35
tests/data/example.md.metadata+2
@@ -1,3 +1,5 @@
1external: External data
1external: External data
2date: 2012-10-22 14:35:24
2date: 2012-10-22 14:35:24
3subblog: food
3subblog: food
4+intfield: 42
5+numfield: 3.14
tests/data/just-meta.htmlnew file+7
@@ -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.outnew file+7
@@ -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>