Skip to content

Commit

Permalink
Add basic unit tests for CTYP-239
Browse files Browse the repository at this point in the history
Signed-off-by: Ambrose Bonnaire-Sergeant <abonnairesergeant@gmail.com>
  • Loading branch information
kazuhiro authored and frenchy64 committed Oct 19, 2015
1 parent 8dd3099 commit 81aa140
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 0 deletions.
@@ -0,0 +1,9 @@
(ns clojure.core.typed.test.cljc
(:require [clojure.test :refer :all]
[clojure.core.typed :as t]))

(deftest check-ns-should-load-cljc-files
(is (t/check-ns 'clojure.core.typed.test.dummy-cljc :collect-only true)))

(deftest check-ns-should-load-clj-files-before-cljc
(is (t/check-ns 'clojure.core.typed.test.duplicated :collect-only true)))
@@ -0,0 +1,2 @@
(ns clojure.core.typed.test.dummy-cljc
(:require [clojure.core.typed :as t]))
@@ -0,0 +1,2 @@
(ns clojure.core.typed.test.duplicated
(:require [clojure.core.typed :as t]))
@@ -0,0 +1,5 @@
(ns clojure.core.typed.test.duplicated
(:require [clojure.core.typed :as t]))

; this is intentional type error for test purposes
(inc 'a)

0 comments on commit 81aa140

Please sign in to comment.