`which-function' does not return a list, but the name of the function

* org-test.el (org-test-current-defun): `which-function' does not
return a list, but the name of the function.
This commit is contained in:
David Maus 2010-11-02 21:11:16 +01:00
parent f0d2bcb1bf
commit f99197e143
1 changed files with 1 additions and 1 deletions

View File

@ -197,7 +197,7 @@ files."
(defun org-test-current-defun ()
"Test the current function."
(interactive)
(ert (car (which-function))))
(ert (which-function)))
(defun org-test-run-all-tests ()
"Run all defined tests matching \"\\(org\\|ob\\)\".