diff options
author | samgd <sam@samgd.com> | 2016-07-23 12:52:55 +0200 |
---|---|---|
committer | samgd <sam@samgd.com> | 2016-07-23 12:52:55 +0200 |
commit | 430a0a8849191edfa7b53dcf76a0fb72f12ebde7 (patch) | |
tree | bea6202e12b0d2e02fbbe009aa3563c6bd9e083d /tests | |
parent | 6e14d33a101e4ea9559d13d7a562da7ebc72acf2 (diff) | |
download | hakyll-430a0a8849191edfa7b53dcf76a0fb72f12ebde7.tar.gz |
Partial trimming
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Hakyll/Web/Template/Tests.hs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/Hakyll/Web/Template/Tests.hs b/tests/Hakyll/Web/Template/Tests.hs index b6a3a1d..1ace2d4 100644 --- a/tests/Hakyll/Web/Template/Tests.hs +++ b/tests/Hakyll/Web/Template/Tests.hs @@ -68,6 +68,13 @@ tests = testGroup "Hakyll.Core.Template.Tests" $ concat , TrimR ] @=? readTemplate "$-for(authors)-$\n body \n$-endfor-$" + -- 'Partial' trim check. + , Template + [ TrimL + , Partial (StringLiteral "path") + , TrimR + ] + @=? readTemplate "$-partial(\"path\")-$" ] ] |