Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
12 lines (10 sloc) 346 Bytes
(ns kibit.test.collections
(:require [kibit.check :as kibit])
(:use [clojure.test]))
(deftest collections-are
(are [expected-alt-form test-form]
(= expected-alt-form (:alt (kibit/check-expr test-form)))
'(vector a) '(conj [] a)
'(vector a b) '(conj [] a b)
'(vec coll) '(into [] coll)
'(set coll) '(into #{} coll)))
Jump to Line
Something went wrong with that request. Please try again.