mirror of
https://github.com/status-im/open-bounty.git
synced 2025-01-11 18:14:25 +00:00
Fixed wrong arity
This commit is contained in:
parent
18f8c74327
commit
d7e4843c82
@ -4,10 +4,14 @@
|
|||||||
|
|
||||||
(deftest test-github-keywords
|
(deftest test-github-keywords
|
||||||
(testing "Several keywords in mixed case"
|
(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"))]
|
"Fixes #12 and cloSes #000028 and also resolved \n#32"))]
|
||||||
(is (= #{12 28 32} res))))
|
(is (= #{12 28 32} res))))
|
||||||
(testing "Ignoring big numbers and zeroes"
|
(testing "Ignoring big numbers and zeroes"
|
||||||
(let [res (set (extract-issue-number
|
(let [res (set (extract-issue-number "body"
|
||||||
"Fixes #298374298229087345 and closes #0xFFEF"))]
|
"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)))))
|
||||||
|
Loading…
x
Reference in New Issue
Block a user