Skip to content

Commit a1eb406

Browse files
frenchy64stuarthalloway
authored andcommitted
CLJ-1845: test for direct linking
Signed-off-by: Stuart Halloway <stu@cognitect.com>
1 parent 38b30ab commit a1eb406

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

test/clojure/test_clojure/compilation.clj

+13
Original file line numberDiff line numberDiff line change
@@ -376,3 +376,16 @@
376376
(deftest test-anon-recursive-fn
377377
(is (= [0 0] (take 2 ((fn rf [x] (lazy-seq (cons x (rf x)))) 0))))
378378
(is (= [0 0] (take 2 (zf 0)))))
379+
380+
381+
;; See CLJ-1845
382+
(deftest direct-linking-for-load
383+
(let [called? (atom nil)
384+
logger (fn [& args]
385+
(reset! called? true)
386+
nil)]
387+
(with-redefs [load logger]
388+
;; doesn't actually load clojure.repl, but should
389+
;; eventually call `load` and reset called?.
390+
(require 'clojure.repl :reload))
391+
(is @called?)))

0 commit comments

Comments
 (0)