File tree Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Expand file tree Collapse file tree 2 files changed +15
-2
lines changed Original file line number Diff line number Diff line change @@ -224,12 +224,16 @@ Returns a collection of syms naming the vars unstrumented."
224
224
(validate-check-opts opts#)
225
225
(check-1 nil ~f ~spec opts#))))
226
226
227
+ (defn- registry-ref []
228
+ #? (:clj @#'s/registry-ref
229
+ :cljs cljs.spec.alpha$macros/registry-ref))
230
+
227
231
(defn checkable-syms*
228
232
([]
229
233
(checkable-syms* nil ))
230
234
([opts]
231
235
(reduce into #{}
232
- [(filter fn-spec-name? (keys @@#'s/ registry-ref))
236
+ [(filter fn-spec-name? (keys @( registry-ref ) ))
233
237
(keys (:spec opts))])))
234
238
235
239
(defmacro checkable-syms
@@ -241,7 +245,7 @@ can be checked."
241
245
`(let [opts# ~opts]
242
246
(validate-check-opts opts#)
243
247
(reduce conj #{}
244
- '[~@(filter fn-spec-name? (keys @@#'s/ registry-ref))
248
+ '[~@(filter fn-spec-name? (keys @( registry-ref ) ))
245
249
~@(keys (:spec opts))]))))
246
250
247
251
(defmacro check
Original file line number Diff line number Diff line change 113
113
114
114
(s/fdef cljs.core/= :args (s/+ any?))
115
115
116
+ (defn foo-2955 [n] " ret" )
117
+
118
+ (s/fdef foo-2955
119
+ :args (s/cat :n number?)
120
+ :ret string?)
121
+
122
+ (deftest test-cljs-2955
123
+ (is (seq (stest/check `foo-2955))))
124
+
116
125
(deftest test-cljs-2956
117
126
(stest/instrument 'cljs.core/=)
118
127
(is (true ? (= 1 )))
You can’t perform that action at this time.
0 commit comments