Skip to content

Commit a7e726d

Browse files
authored
concat (#300)
1 parent 1e521ac commit a7e726d

File tree

3 files changed

+18
-0
lines changed

3 files changed

+18
-0
lines changed

src/speculative/core.cljc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@
105105
:intervening (s/* ::ss/any)
106106
:args ::ss/seqable))
107107

108+
;; 718
109+
(s/fdef clojure.core/concat
110+
:args (s/* ::ss/seqable)
111+
:ret ::ss/seqable)
112+
108113
;; 783
109114
(s/fdef clojure.core/=
110115
:args (s/+ ::ss/any)

src/speculative/impl/syms.cljc

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
clojure.core/assoc-in
1616
clojure.core/atom
1717
clojure.core/comp
18+
clojure.core/concat
1819
clojure.core/conj
1920
clojure.core/cons
2021
clojure.core/count
@@ -118,6 +119,7 @@
118119
cljs.core/assoc-in
119120
cljs.core/atom
120121
cljs.core/comp
122+
cljs.core/concat
121123
cljs.core/conj
122124
cljs.core/cons
123125
cljs.core/count
@@ -241,6 +243,7 @@
241243
clojure.core/assoc-in
242244
clojure.core/atom
243245
clojure.core/comp
246+
clojure.core/concat
244247
clojure.core/conj
245248
clojure.core/cons
246249
clojure.core/count
@@ -334,6 +337,7 @@
334337
cljs.core/assoc-in
335338
cljs.core/atom
336339
cljs.core/comp
340+
cljs.core/concat
337341
cljs.core/conj
338342
cljs.core/cons
339343
cljs.core/count

test/speculative/core_test.cljc

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,15 @@
207207
(is (caught? `apply (apply + 1 2 3 4))))
208208
:cljs nil)) ;; maximum call stack exceeded
209209

210+
;; 718
211+
(deftest concat-test
212+
(is (check-call `concat []))
213+
(is (check-call `concat [nil nil nil]))
214+
(is (check-call `concat [[1 2 3] [4 5 6]]))
215+
(is (check-call `concat ["foo" "bar"]))
216+
(check `concat)
217+
(with-instrumentation `concat
218+
(is (caught? `concat (concat 1 2 3)))))
210219

211220
;; 783
212221
(deftest =-test

0 commit comments

Comments
 (0)