aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLars Ingebrigtsen2019-10-11 07:46:41 +0200
committerLars Ingebrigtsen2019-10-11 07:46:41 +0200
commitb5d2c6ee018df3cab96d44bb50eaa933aa1d865e (patch)
tree291cb669c2cb496cb06f51ca22cf20f8593c5d6c
parentffb7100750c211f55dd95811675d12a783f15d66 (diff)
downloademacs-b5d2c6ee018df3cab96d44bb50eaa933aa1d865e.tar.gz
emacs-b5d2c6ee018df3cab96d44bb50eaa933aa1d865e.zip
Remove two checkdoc tests checked in by mistake
* test/lisp/emacs-lisp/checkdoc-tests.el: Remove &aux and &context checks mistakenly checked in (as these aren't implemented) (bug#37697).
-rw-r--r--test/lisp/emacs-lisp/checkdoc-tests.el16
1 files changed, 0 insertions, 16 deletions
diff --git a/test/lisp/emacs-lisp/checkdoc-tests.el b/test/lisp/emacs-lisp/checkdoc-tests.el
index de75c42c520..3fbf25d7086 100644
--- a/test/lisp/emacs-lisp/checkdoc-tests.el
+++ b/test/lisp/emacs-lisp/checkdoc-tests.el
@@ -111,13 +111,6 @@
111 (insert "(cl-defun foo (&key a &allow-other-keys) \"Return :A.\")") 111 (insert "(cl-defun foo (&key a &allow-other-keys) \"Return :A.\")")
112 (checkdoc-defun))) 112 (checkdoc-defun)))
113 113
114(ert-deftest checkdoc-cl-defun-with-aux-ok ()
115 "Checkdoc should be happy with a cl-defun using &aux."
116 (with-temp-buffer
117 (emacs-lisp-mode)
118 (insert "(cl-defun foo (a b &aux (c (+ a b))) \"Return A and B.\")")
119 (checkdoc-defun)))
120
121(ert-deftest checkdoc-cl-defun-with-default-optional-value-ok () 114(ert-deftest checkdoc-cl-defun-with-default-optional-value-ok ()
122 "Checkdoc should be happy with a cl-defun using default values for optional args." 115 "Checkdoc should be happy with a cl-defun using default values for optional args."
123 (with-temp-buffer 116 (with-temp-buffer
@@ -134,15 +127,6 @@
134 (insert "(cl-defun foo ((a b &optional c) d) \"Return A+B+C+D.\")") 127 (insert "(cl-defun foo ((a b &optional c) d) \"Return A+B+C+D.\")")
135 (checkdoc-defun))) 128 (checkdoc-defun)))
136 129
137(ert-deftest checkdoc-cl-defmethod-with-context-ok ()
138 "Checkdoc should ignore context specializers in a cl-defmethod."
139 (with-temp-buffer
140 (emacs-lisp-mode)
141 ;; A context specializer is used to select the correct method but
142 ;; doesn't have to appear in the docstring:
143 (insert "(cl-defmethod foo (a &context (global-var (eql foo))) \"Return A.\")")
144 (checkdoc-defun)))
145
146(ert-deftest checkdoc-tests--next-docstring () 130(ert-deftest checkdoc-tests--next-docstring ()
147 "Checks that the one-argument form of `defvar' works. 131 "Checks that the one-argument form of `defvar' works.
148See the comments in Bug#24998." 132See the comments in Bug#24998."