Fixed wrong arity

This commit is contained in:
Julien Eluard 2017-07-26 23:51:45 +02:00
parent 18f8c74327
commit d7e4843c82
No known key found for this signature in database
GPG Key ID: 6FD7DB5437FCBEF6
1 changed files with 7 additions and 3 deletions

View File

@ -4,10 +4,14 @@
(deftest test-github-keywords
(testing "Several keywords in mixed case"
(let [res (set (extract-issue-number
(let [res (set (extract-issue-number "body"
"Fixes #12 and cloSes #000028 and also resolved \n#32"))]
(is (= #{12 28 32} res))))
(testing "Ignoring big numbers and zeroes"
(let [res (set (extract-issue-number
(let [res (set (extract-issue-number "body"
"Fixes #298374298229087345 and closes #0xFFEF"))]
(is (= #{} res)))))
(is (= #{} res))))
(testing "Consider both body and title"
(let [res (set (extract-issue-number "Fixes #1"
"Fixes #2"))]
(is (= #{1 2} res)))))