From 0de38d9b9b9951f9ff92f681299845c758b67295 Mon Sep 17 00:00:00 2001 From: Jasper Van der Jeugt Date: Fri, 8 Apr 2011 22:20:15 +0200 Subject: Test for escaped patterns --- tests/Hakyll/Core/Identifier/Tests.hs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/Hakyll/Core/Identifier') 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] -- cgit v1.2.3