diff options
Diffstat (limited to 'test/lisp/emacs-lisp/checkdoc-tests.el')
-rw-r--r-- | test/lisp/emacs-lisp/checkdoc-tests.el | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/checkdoc-tests.el b/test/lisp/emacs-lisp/checkdoc-tests.el index 6ca316beff2..049d2d953a0 100644 --- a/test/lisp/emacs-lisp/checkdoc-tests.el +++ b/test/lisp/emacs-lisp/checkdoc-tests.el @@ -37,6 +37,15 @@ (insert "(defun foo())") (should-error (checkdoc-defun) :type 'user-error))) +(ert-deftest checkdoc-docstring-avoid-false-positive-ok () + "Check that Bug#68002 is fixed." + (with-temp-buffer + (emacs-lisp-mode) + (insert "(defvar org-element--cache-interrupt-C-g-count 0 + \"Current number of `org-element--cache-sync' calls. +See `org-element--cache-interrupt-C-g'.\")") + (checkdoc-defun))) + (ert-deftest checkdoc-cl-defmethod-ok () "Checkdoc should be happy with a simple correct cl-defmethod." (with-temp-buffer |