File tree Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Expand file tree Collapse file tree 1 file changed +16
-1
lines changed Original file line number Diff line number Diff line change 167
167
(expect (clojure-find-ns) :to-equal expected)
168
168
; ; After both namespaces
169
169
(goto-char (point-max ))
170
- (expect (clojure-find-ns) :to-equal expected)))))))
170
+ (expect (clojure-find-ns) :to-equal expected))))))
171
+
172
+ (describe " `suppress-errors' argument"
173
+ (let ((clojure-cache-ns nil ))
174
+ (describe " given a faulty ns form"
175
+ (let ((ns-form " (ns )" ))
176
+ (describe " when the argument is `t' "
177
+ (it " causes `clojure-find-ns' to return nil"
178
+ (with-clojure-buffer ns-form
179
+ (expect (equal nil (clojure-find-ns t ))))))
180
+
181
+ (describe " when the argument is `nil' "
182
+ (it " causes `clojure-find-ns' to return raise an error"
183
+ (with-clojure-buffer ns-form
184
+ (expect (clojure-find-ns nil )
185
+ :to-throw 'error )))))))))
171
186
172
187
(describe " clojure-sexp-starts-until-position"
173
188
(it " should return starting points for forms after POINT until POSITION"
You can’t perform that action at this time.
0 commit comments