summaryrefslogtreecommitdiff
path: root/tests/Hakyll/Core
diff options
context:
space:
mode:
authorJasper Van der Jeugt <jaspervdj@gmail.com>2011-04-08 22:20:15 +0200
committerJasper Van der Jeugt <jaspervdj@gmail.com>2011-04-08 22:20:15 +0200
commit0de38d9b9b9951f9ff92f681299845c758b67295 (patch)
treef6a943581440a4f2e013d70bc4f45ad27caa560e /tests/Hakyll/Core
parenta8accd36b117c0a8cadb8dc5161c5a60d62a0aeb (diff)
downloadhakyll-0de38d9b9b9951f9ff92f681299845c758b67295.tar.gz
Test for escaped patterns
Diffstat (limited to 'tests/Hakyll/Core')
-rw-r--r--tests/Hakyll/Core/Identifier/Tests.hs2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/Hakyll/Core/Identifier/Tests.hs b/tests/Hakyll/Core/Identifier/Tests.hs
index 0d7bfb8..6eb992a 100644
--- a/tests/Hakyll/Core/Identifier/Tests.hs
+++ b/tests/Hakyll/Core/Identifier/Tests.hs
@@ -30,6 +30,8 @@ captureTests = fromAssertions "capture"
, Just ["foo/bar"] @=? capture "**.html" "foo/bar.html"
, Just ["foo/bar", "wut"] @=? capture "**/qux/*" "foo/bar/qux/wut"
, Just ["lol", "fun/large"] @=? capture "*cat/**.jpg" "lolcat/fun/large.jpg"
+ , Just [] @=? capture "\\*.jpg" "*.jpg"
+ , Nothing @=? capture "\\*.jpg" "foo.jpg"
]
regexTests :: [Test]