diff options
author | Stefan Kangas <stefan@marxist.se> | 2021-09-26 14:13:03 +0200 |
---|---|---|
committer | Stefan Kangas <stefan@marxist.se> | 2021-09-26 14:55:19 +0200 |
commit | a0d5de4fb9de82dfda741c5cf39d87cee955cc46 (patch) | |
tree | 7b102a9c6a377284dd3b26eddbcfdcf2593706a1 /test/lisp/emacs-lisp | |
parent | 6e1de14e51f692684ccaffb7113ca0e6c135ba41 (diff) | |
download | emacs-a0d5de4fb9de82dfda741c5cf39d87cee955cc46.tar.gz emacs-a0d5de4fb9de82dfda741c5cf39d87cee955cc46.tar.bz2 emacs-a0d5de4fb9de82dfda741c5cf39d87cee955cc46.zip |
Add test for lm-website
* lisp/emacs-lisp/lisp-mnt.el (lm-website): Use rx.
* test/lisp/emacs-lisp/lisp-mnt-tests.el
(lm--tests-lm-website): New test.
Diffstat (limited to 'test/lisp/emacs-lisp')
-rw-r--r-- | test/lisp/emacs-lisp/lisp-mnt-tests.el | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/lisp-mnt-tests.el b/test/lisp/emacs-lisp/lisp-mnt-tests.el index 84cdc7205f2..d77804fbe60 100644 --- a/test/lisp/emacs-lisp/lisp-mnt-tests.el +++ b/test/lisp/emacs-lisp/lisp-mnt-tests.el @@ -32,5 +32,13 @@ '(("Bob Weiner" . "rsw@gnu.org") ("Mats Lidell" . "matsl@gnu.org"))))) +(ert-deftest lm--tests-lm-website () + (with-temp-buffer + (insert ";; URL: https://example.org/foo") + (should (string= (lm-website) "https://example.org/foo"))) + (with-temp-buffer + (insert ";; X-URL: <https://example.org/foo>") + (should (string= (lm-website) "https://example.org/foo")))) + (provide 'lisp-mnt-tests) ;;; lisp-mnt-tests.el ends here |