on master help sign in
Add test
commitf9f8603c323159510bc56e8d39d7cc0ae9ab3056 authorNikolaos S. Papaspyrou <nickie@softlab.ntua.gr> dateMon 31 Oct 2016, 15:00 (10 years ago) parent3aa07ea
4 files changed+17
tests/Hakyll/Web/Template/Tests.hs+1 tests/data/example.md.metadata+2 tests/data/just-meta.html+7 tests/data/just-meta.html.out+7
tests/Hakyll/Web/Template/Tests.hs+1
@@ -29,6 +29,7 @@ tests :: TestTree
2929tests = 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+2
@@ -1,3 +1,5 @@
11external: External data
22date: 2012-10-22 14:35:24
33subblog: 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>