File tree Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Expand file tree Collapse file tree 2 files changed +8
-5
lines changed Original file line number Diff line number Diff line change 56
56
" Qualify symbol s by resolving it or using the current *ns*."
57
57
[env s]
58
58
(if (namespace s)
59
- (let [v (resolve env s)]
60
- (clojure.core/assert v (str " Unable to resolve: " s))
61
- (->sym v))
59
+ (->sym (ana/resolve-var env s))
62
60
(symbol (str ana/*cljs-ns*) (str s))))
63
61
64
62
(defmacro def
Original file line number Diff line number Diff line change 8
8
9
9
(ns cljs.spec-test
10
10
(:require [cljs.spec.alpha :as s]
11
+ [cljs.spec.test.alpha :as st]
11
12
[cljs.test :as test :refer-macros [deftest is are run-tests]]
12
13
[cljs.spec.gen.alpha :as gen]
13
14
[clojure.test.check.generators]))
34
35
:args (s/cat :a integer? :b (s/? integer?))
35
36
:ret integer?)
36
37
37
- ; ;(s /instrument #' adder)
38
+ ; ;(st /instrument ` adder)
38
39
39
40
(deftest test-multi-arity-instrument
40
41
(is (= 1 (adder 1 )))
48
49
49
50
(s/fdef testmm :args (s/cat :m map?) :ret string?)
50
51
51
- ; ;(s /instrument #' testmm)
52
+ ; ;(st /instrument ` testmm)
52
53
53
54
(deftest test-multifn-instrument
54
55
(is (= " good" (testmm {:type :good })))
292
293
[{10 10 20 " x" }]
293
294
[{10 10 20 " x" }]))
294
295
296
+ (s/fdef foo.bar/cljs-2275
297
+ :args (s/cat :k keyword?)
298
+ :ret string?)
299
+
295
300
(comment
296
301
297
302
(run-tests )
You can’t perform that action at this time.
0 commit comments