Skip to content

Commit 915c533

Browse files
committed
Fix the test macro to support find-func
1 parent 83c7090 commit 915c533

File tree

1 file changed

+12
-9
lines changed

1 file changed

+12
-9
lines changed

test/clojure-mode-refactor-threading-test.el

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,18 @@
3030

3131
(defmacro def-threading-test (name before after &rest body)
3232
(declare (indent 3))
33-
`(ert-deftest ,(intern (format "test-thread-%s" name)) ()
34-
(let ((clojure-thread-all-but-last nil))
35-
(with-temp-buffer
36-
(insert ,before)
37-
(clojure-mode)
38-
,@body
39-
(should (equal ,(concat "\n" after)
40-
(concat "\n" (buffer-substring-no-properties
41-
(point-min) (point-max)))))))))
33+
(let ((sym (intern (format "test-thread-%s" name))))
34+
`(progn
35+
(put ',sym 'definition-name ',name)
36+
(ert-deftest ,sym ()
37+
(let ((clojure-thread-all-but-last nil))
38+
(with-temp-buffer
39+
(insert ,before)
40+
(clojure-mode)
41+
,@body
42+
(should (equal ,(concat "\n" after)
43+
(concat "\n" (buffer-substring-no-properties
44+
(point-min) (point-max)))))))))))
4245

4346
;; thread first
4447

0 commit comments

Comments
 (0)