Skip to content

Commit

Permalink
Add test case with complex metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
SophieBosio authored and bbatsov committed Dec 11, 2024
1 parent 4528e87 commit 60ec485
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion test/clojure-mode-util-test.el
Original file line number Diff line number Diff line change
Expand Up @@ -388,7 +388,12 @@
(with-clojure-buffer-point
"(defn- |^{:doc \"A function\"} foo [] 1)
(defn- ^:private bar 2)"
(expect (clojure-find-def) :to-equal '("defn-" "foo"))))
(expect (clojure-find-def) :to-equal '("defn-" "foo")))
(with-clojure-buffer-point
"(def foo 1)
(defn- ^{:|a {}} complex-metadata |[x y z] z)
(def bar 2)"
(expect (clojure-find-def) :to-equal '("defn-" "complex-metadata"))))
(it "should recognize def...-, with or without metadata"
(with-clojure-buffer-point
"(def foo 1)
Expand Down

0 comments on commit 60ec485

Please sign in to comment.