File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change @@ -159,6 +159,23 @@ buffer."
159
159
(spy-on 'thing-at-point :and-return-value " boogie>" )
160
160
(expect (cider-symbol-at-point) :to-equal " boogie>" )))
161
161
162
+ (describe " cider-list-at-point"
163
+ (describe " when the param 'bounds is not given"
164
+ (it " returns the list at point"
165
+ (with-clojure-buffer " (1 2 3|)"
166
+ (expect (cider-list-at-point) :to-equal " (1 2 3)" )))
167
+
168
+ (it " handle leading @ reader macro properly"
169
+ (with-clojure-buffer " @(1 2 3|)"
170
+ (expect (cider-list-at-point) :to-equal " @(1 2 3)" ))))
171
+
172
+ (describe " when the param 'bounds is given"
173
+ (it " returns the bounds of starting and ending positions of the sexp"
174
+ (with-clojure-buffer " (1 2 3|)"
175
+ (delete-char -1 )
176
+ (insert " '" )
177
+ (expect (cider-list-at-point 'bounds ) :to-equal '(1 8 ))))))
178
+
162
179
(describe " cider-sexp-at-point"
163
180
(describe " when the param 'bounds is not given"
164
181
(it " returns the sexp at point"
You can’t perform that action at this time.
0 commit comments