Permalink
Browse files

Add a dev-box-only test using collection-check/assert-vector-like

Maven only sees the tests under src/test/clojure; Leiningen
additionally runs those under src/test_local/clojure.
  • Loading branch information...
1 parent 3a48a4f commit f2c434e4d33bb0207ab9ee40f3248a03021e560e @michalmarczyk michalmarczyk committed Jan 4, 2014
Showing with 12 additions and 1 deletion.
  1. +3 −1 project.clj
  2. +9 −0 src/test_local/clojure/clojure/core/rrb_vector_check.clj
View
@@ -11,7 +11,9 @@
:test-paths ["src/test/clojure"]
:global-vars {*warn-on-reflection* true}
:jvm-opts ^:replace []
- :profiles {:dev {:dependencies [[org.clojure/clojurescript "0.0-2138"]]
+ :profiles {:dev {:test-paths ["src/test_local/clojure"]
+ :dependencies [[org.clojure/clojurescript "0.0-2138"]
+ [collection-check "0.1.1"]]
:plugins [[lein-cljsbuild "1.0.1"]]}}
:cljsbuild {:builds {:test {:source-paths ["src/main/cljs"
"src/test/cljs"]
@@ -0,0 +1,9 @@
+(ns clojure.core.rrb-vector-check
+ (:require [clojure.core.rrb-vector :as fv]
+ [collection-check :refer [assert-vector-like]])
+ (:use clojure.test))
+
+(deftest collection-check
+ (is (assert-vector-like (fv/vector) simple-check.generators/int))
+ (is (every? nil? (.-array ^clojure.lang.PersistentVector$Node
+ (.-root ^clojure.lang.PersistentVector (vector))))))

0 comments on commit f2c434e

Please sign in to comment.