Skip to content
This repository has been archived by the owner on Jan 28, 2019. It is now read-only.

Commit

Permalink
Add load order tests
Browse files Browse the repository at this point in the history
  • Loading branch information
arrdem committed Apr 8, 2016
1 parent 09aa97e commit a0d412b
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 0 deletions.
5 changes: 5 additions & 0 deletions test/clojure/test_clojure/compilation.clj
Original file line number Diff line number Diff line change
Expand Up @@ -389,3 +389,8 @@
;; eventually call `load` and reset called?.
(require 'clojure.repl :reload))
(is @called?)))

(deftest load-preference
(is (= :jnt (do (load "clojure/test_clojure/compilation/jnt_first") *1)))
(is (= :clj (do (load "clojure/test_clojure/compilation/clj_over_cljc") *1)))
(is (= :cljc (do (load "clojure/test_clojure/compilation/just_cljc") *1))))
4 changes: 4 additions & 0 deletions test/clojure/test_clojure/compilation/clj_over_cljc.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(ns clojure.test-clojure.compilation.clj-over-cljc)

(set! *1 :clj)

4 changes: 4 additions & 0 deletions test/clojure/test_clojure/compilation/clj_over_cljc.cljc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(ns clojure.test-clojure.compilation.clj-over-cljc)

(set! *1 :cljc)

3 changes: 3 additions & 0 deletions test/clojure/test_clojure/compilation/jnt_first.clj
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(ns clojure.test-clojure.compilation.jnt-first)

(set! *1 :clj)
3 changes: 3 additions & 0 deletions test/clojure/test_clojure/compilation/jnt_first.jnt
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(ns clojure.test-clojure.compilation.jnt-first)

(set! *1 :jnt)
4 changes: 4 additions & 0 deletions test/clojure/test_clojure/compilation/just_cljc.cljc
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
(ns clojure.test-clojure.compilation.just-cljc)

(set! *1 :cljc)

0 comments on commit a0d412b

Please sign in to comment.