testの利用準備。 (use '[clojure.test]) キモはisマクロにあり。 (is (= 4 (+ 2 2))) (is (instance? Integer 256)) (is (.startsWith \"abcde\" \"ab\")) (is (thrown? ArithmeticException (/ 1 0))) isは第2引数をコメントとして受け取る。 (is (= 5 (+ 2 2)) \"Crazy arithmetic\") testingマクロを使うと表明のグループにコメントできる。 (testing \"Arithmetic\" (testing \"with positive integers\" (is (= 4 (+ 2 2))) (is (= 7 (+ 3 4)))) (testing \"with negative integers\"