Permalink
Browse files

Added test for problem 25 and refactored

  • Loading branch information...
1 parent e51a3cb commit d9032f27739a5b9f4b71ca329395ce47b07fc434 Richard Hall committed Apr 29, 2012
Showing with 9 additions and 0 deletions.
  1. +5 −0 test/euler/common_test.clj
  2. +4 −0 test/euler/prob1_25_test.clj
@@ -1,3 +1,8 @@
(ns euler.common-test
(:use clojure.test
euler.common))
+
+
+(deftest fib-term-test
+ (testing "Making sure my fibbonacci sequence term 10 = 55"
+ (is (= 55 (nth (fibs) 10)))))
@@ -63,3 +63,7 @@
(deftest problem20-actual
(testing "Testing actual solution of problem 20 for refactoring"
(is (= 648 (problem20 100)))))
+
+(deftest prob25-test
+ (testing "The 12th term of fibbonacci sequence is the first in 3 digits"
+ (is (= 12 (problem25 3)))))

0 comments on commit d9032f2

Please sign in to comment.