                                  #(= 3 %) (s/view dec))]
                  [1 2 3 4 5 6 7 8])))
   (is (empty? (s/select (s/if-path odd? (s/view inc)) 2)))
-  (is (= [6 2 10 6 14] 
+  (is (= [6 2 10 6 14]
          (s/transform [(s/putval 2)
                   s/ALL
                   (s/if-path odd? [(s/view inc) (s/view inc)] (s/view dec))]

  (is (thrown? #?(:clj Exception :cljs js/Error) (s/select-one! s/ALL [])))
  )

(defspec transformed-test
  (for-all+
    [v (gen/vector gen/int)
     pred (gen/elements [even? odd?]
     op   (gen/elements [inc dec]))]
    (= (select-one (transformed [ALL pred] op) v)
       (transform [ALL pred] op v))
    ))

             [cljs.test :refer [is deftest]]
             [cljs.test.check.cljs-test :refer [defspec]]
             [com.rpl.specter.cljs-test-helpers :refer [for-all+]]))
  (:use
    #?(:clj [clojure.test :only [deftest is]])
    #?(:clj [clojure.test.check.clojure-test :only [defspec]])
    #?(:clj [com.rpl.specter.test-helpers :only [for-all+]])
