We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d626d57 commit 777b10eCopy full SHA for 777b10e
2 files changed
src/main/cljs/cljs/spec/test/alpha.cljs
@@ -130,7 +130,7 @@
130
(fn [& args]
131
(if *instrument-enabled*
132
(with-instrument-disabled
133
- (conform!* args)
+ (conform!* (apply list* args))
134
(binding [*instrument-enabled* true]
135
(apply' variadic args)))
136
(apply' variadic args))))))
src/test/cljs/cljs/spec_test.cljs
@@ -442,7 +442,7 @@
442
(is (= (s/form #(odd? %)) ::s/unknown)))
443
444
(defn defk [key & [doc]]
445
- key)
+ [key doc])
446
447
(s/fdef defk
448
:args (s/cat :key keyword?
@@ -453,7 +453,7 @@
453
(deftest cljs-2977-variadic-fn
454
(is (thrown? js/Error (defk 1 1)))
455
(is (thrown? js/Error (defk :foo 1)))
456
- (is (= :foo (defk :foo "bar"))))
+ (is (= [:foo "bar"] (defk :foo "bar"))))
457
458
(comment
459
0 commit comments