Skip to content

Commit aaae268

Browse files
committed
tests for CLJS-739
1 parent 78d20ee commit aaae268

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

test/cljs/cljs/core_test.cljs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2115,5 +2115,17 @@
21152115
(assert (= x 1))
21162116
(assert (= y 2)))
21172117

2118+
;; CLJS-739
2119+
2120+
(defn cljs-739 [arr names]
2121+
(let [name (first names)]
2122+
(if name
2123+
(recur (conj arr (fn [] (println name)))
2124+
(rest names))
2125+
arr)))
2126+
2127+
(assert (= (with-out-str (doseq [fn (cljs-739 [] [:a :b :c :d])] (fn)))
2128+
":a\n:b\n:c\n:d\n"))
2129+
21182130
:ok
21192131
)

0 commit comments

Comments
 (0)