diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/ebuild-mode-tests.el | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/ebuild-mode-tests.el b/test/ebuild-mode-tests.el index e81d4c8..9af48f6 100644 --- a/test/ebuild-mode-tests.el +++ b/test/ebuild-mode-tests.el @@ -257,7 +257,8 @@ (lambda (url &rest _args) (setq found url)))) (with-temp-buffer (insert "# abc #876543 xyz\n" - "# bug 765432\n") + "# bug 765432\n" + "# bug #654321#c10\n") (ebuild-mode-test-run-silently (ebuild-mode)) (bug-reference-fontify (point-min) (point-max)) @@ -270,6 +271,10 @@ (bug-reference-push-button (point)) (should (equal found "https://bugs.gentoo.org/765432")) (setq found nil) + (search-forward "bug") + (bug-reference-push-button (point)) + (should (equal found "https://bugs.gentoo.org/654321#c10")) + (setq found nil) (bug-reference-push-button (point-min)) (bug-reference-push-button (point-max)) (should-not found)))) |