File tree 1 file changed +15
-1
lines changed
1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 374
374
" (deftest ^{:a 1} simple-metadata)
375
375
(deftest ^{:a {}} complex-metadata)
376
376
(deftest |no-metadata)"
377
- (expect (clojure-find-def) :to-equal '(" deftest" " no-metadata" )))))
377
+ (expect (clojure-find-def) :to-equal '(" deftest" " no-metadata" ))))
378
+ (it " should recognize defn-"
379
+ (with-clojure-buffer-point
380
+ " (def foo 1)
381
+ (defn- bar |[x y z] z)
382
+ (def bar 2)"
383
+ (expect (clojure-find-def) :to-equal '(" defn-" " bar" )))
384
+ (with-clojure-buffer-point
385
+ " (def foo 1)
386
+ (defn- ^:private bar |[x y z] z)"
387
+ (expect (clojure-find-def) :to-equal '(" defn-" " bar" )))
388
+ (with-clojure-buffer-point
389
+ " (defn- |^{:doc \" A function\" } foo [] 1)
390
+ (defn- ^:private bar 2)"
391
+ (expect (clojure-find-def) :to-equal '(" defn-" " foo" )))))
378
392
379
393
(provide 'clojure-mode-util-test )
380
394
You can’t perform that action at this time.
0 commit comments