You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
19 lines
372 B
19 lines
372 B
(ns one.core-test
|
|
(:use clojure.test)
|
|
(:require [one.core :refer :all]))
|
|
|
|
(deftest bigger
|
|
(is (= true (big "foo" 2))))
|
|
|
|
(deftest smaller
|
|
(is (= false (big "small" 10))))
|
|
|
|
(deftest vector-type
|
|
(is (= :vector (collection-type [1 2 3]))))
|
|
|
|
(deftest list-type
|
|
(is (= :list (collection-type '( 1 2 3)))))
|
|
|
|
(deftest what-list
|
|
(is (= :list (what-type '( 1 2 3)))))
|