diff options
author | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-04-08 22:20:15 +0200 |
---|---|---|
committer | Jasper Van der Jeugt <jaspervdj@gmail.com> | 2011-04-08 22:20:15 +0200 |
commit | 0de38d9b9b9951f9ff92f681299845c758b67295 (patch) | |
tree | f6a943581440a4f2e013d70bc4f45ad27caa560e /tests/Hakyll | |
parent | a8accd36b117c0a8cadb8dc5161c5a60d62a0aeb (diff) | |
download | hakyll-0de38d9b9b9951f9ff92f681299845c758b67295.tar.gz |
Test for escaped patterns
Diffstat (limited to 'tests/Hakyll')
-rw-r--r-- | tests/Hakyll/Core/Identifier/Tests.hs | 2 |
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] |