diff --git a/test/clj/commiteth/test/github.clj b/test/clj/commiteth/test/github.clj index 862ff6c..96e2416 100644 --- a/test/clj/commiteth/test/github.clj +++ b/test/clj/commiteth/test/github.clj @@ -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)))))