File tree Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Expand file tree Collapse file tree 1 file changed +12
-9
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments