Permalink
Browse files

Adds arithmetic specs

  • Loading branch information...
1 parent c326517 commit 3d7dec12d669fef33d06f7285c9d25752e114c3b @torbjornvatn committed Feb 26, 2012
@@ -0,0 +1,7 @@
+(ns midje99.arithmetic-solutions)
+
+(defn is-prime [number]
+ "todo")
+
+(defn gcd [list]
+ "todo")
@@ -0,0 +1,9 @@
+(ns midje99.test.arithmetic-spec
+ (:use midje.sweet)
+ (:use midje99.arithmetic-solutions))
+
+(future-fact "P31 - Determine whether a given integer number is prime"
+ (is-prime 7) => true)
+
+(future-fact "P32 - Determine the greatest common divisor of two positive integer numbers. Use Euclid's algorithm"
+ (gcd '(36, 63) => 9))
@@ -1,5 +1,4 @@
(ns midje99.test.list-spec
- (:use clojure.test)
(:use midje.sweet)
(:use midje99.lists-solutions))

0 comments on commit 3d7dec1

Please sign in to comment.