diff options
author | samgd <sam@samgd.com> | 2016-07-23 14:46:15 +0200 |
---|---|---|
committer | samgd <sam@samgd.com> | 2016-07-23 14:46:15 +0200 |
commit | 9867094bd27ed170315e7e02b788243d654c6bc1 (patch) | |
tree | 04911e756c9c5e8bfaeff241c091d63bb95c5f0b /tests | |
parent | 430a0a8849191edfa7b53dcf76a0fb72f12ebde7 (diff) | |
download | hakyll-9867094bd27ed170315e7e02b788243d654c6bc1.tar.gz |
Expr trimming. '-' binds to '$'.
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 1ace2d4..a7b31a7 100644 --- a/tests/Hakyll/Web/Template/Tests.hs +++ b/tests/Hakyll/Web/Template/Tests.hs @@ -75,6 +75,13 @@ tests = testGroup "Hakyll.Core.Template.Tests" $ concat , TrimR ] @=? readTemplate "$-partial(\"path\")-$" + -- 'Expr' trim check. + , Template + [ TrimL + , Expr (Ident (TemplateKey "foo")) + , TrimR + ] + @=? readTemplate "$-foo-$" ] ] |