summaryrefslogtreecommitdiff
path: root/tests/Hakyll
diff options
context:
space:
mode:
authorfrederik-h <frederik-h@users.noreply.github.com>2017-12-25 15:42:21 +0100
committerJasper Van der Jeugt <jaspervdj@gmail.com>2017-12-25 15:42:21 +0100
commit293c379e1634b39315cf6a8cab80470aa3c50ad0 (patch)
treed2981d9090007c901599f67cab8b8c9caaffba3d /tests/Hakyll
parente18de17f4f313483193daf68419a73f23aa79de1 (diff)
downloadhakyll-293c379e1634b39315cf6a8cab80470aa3c50ad0.tar.gz
Extend capture with Regex handling
Diffstat (limited to 'tests/Hakyll')
-rw-r--r--tests/Hakyll/Core/Identifier/Tests.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/Hakyll/Core/Identifier/Tests.hs b/tests/Hakyll/Core/Identifier/Tests.hs
index a5de85a..2829927 100644
--- a/tests/Hakyll/Core/Identifier/Tests.hs
+++ b/tests/Hakyll/Core/Identifier/Tests.hs
@@ -42,6 +42,7 @@ captureTests = fromAssertions "capture"
, Just ["lol", "fun/large"] @=? capture "*cat/**.jpg" "lolcat/fun/large.jpg"
, Just [] @=? capture "\\*.jpg" "*.jpg"
, Nothing @=? capture "\\*.jpg" "foo.jpg"
+ , Just ["xyz","42"] @=? capture (fromRegex "cat-([a-z]+)/foo([0-9]+).jpg") "cat-xyz/foo42.jpg"
]