Skip to content

Commit 5f0df70

Browse files
committed
Add a few more tests
1 parent 8934663 commit 5f0df70

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

test/cider-util-tests.el

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,25 @@ buffer."
165165
(with-clojure-buffer "(1 2 3|)"
166166
(expect (cider-list-at-point) :to-equal "(1 2 3)")))
167167

168-
(it "handle leading @ reader macro properly"
168+
(it "handles leading @ reader macro properly"
169169
(with-clojure-buffer "@(1 2 3|)"
170-
(expect (cider-list-at-point) :to-equal "@(1 2 3)"))))
170+
(expect (cider-list-at-point) :to-equal "@(1 2 3)")))
171+
172+
(it "handles leading ' reader macro properly"
173+
(with-clojure-buffer "'(1 2 3|)"
174+
(expect (cider-list-at-point) :to-equal "'(1 2 3)")))
175+
176+
(it "handles vectors"
177+
(with-clojure-buffer "[1 2 3|]"
178+
(expect (cider-list-at-point) :to-equal "[1 2 3]")))
179+
180+
(xit "handles sets"
181+
(with-clojure-buffer "#{1 2 3|}"
182+
(expect (cider-list-at-point) :to-equal "{1 2 3}")))
183+
184+
(it "handles maps"
185+
(with-clojure-buffer "{1 2 3 4|}"
186+
(expect (cider-list-at-point) :to-equal "{1 2 3 4}"))))
171187

172188
(describe "when the param 'bounds is given"
173189
(it "returns the bounds of starting and ending positions of the sexp"

0 commit comments

Comments
 (0)