summaryrefslogtreecommitdiff
path: root/tests/SlackBuilder
diff options
context:
space:
mode:
Diffstat (limited to 'tests/SlackBuilder')
-rw-r--r--tests/SlackBuilder/LatestVersionCheckSpec.hs5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/SlackBuilder/LatestVersionCheckSpec.hs b/tests/SlackBuilder/LatestVersionCheckSpec.hs
index bc4a0f2..cfdd195 100644
--- a/tests/SlackBuilder/LatestVersionCheckSpec.hs
+++ b/tests/SlackBuilder/LatestVersionCheckSpec.hs
@@ -41,3 +41,8 @@ spec = do
let expected = Nothing
actual = match "2.6.0-rc1" "2.6.0"
in actual `shouldBe` expected
+
+ it "consumes the last token matching nothing" $
+ let expected = Just "abc"
+ actual = match "abc\\d\\d" "abc"
+ in actual `shouldBe` expected