Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

13 lines (11 sloc) 0.355 kB
(ns kibit.test.arithmetic
(:require [kibit.check :as kibit])
(:use [clojure.test]))
(deftest arithmetic-are
(are [expected-alt-form test-form]
(= expected-alt-form (:alt (kibit/check-expr test-form)))
'(inc num) '(+ num 1)
'(inc num) '(+ 1 num)
'(dec num) '(- num 1)
'(* x y z) '(* x (* y z))
'(+ x y z) '(+ x (+ y z))))
Jump to Line
Something went wrong with that request. Please try again.