From 7d8cfd0573b442caa9a04b499e05b714b9b58a4a Mon Sep 17 00:00:00 2001 From: Ben Lickly Date: Thu, 6 Jan 2011 13:33:44 -0800 Subject: [PATCH] Fixed bigint representations in recursion koans. --- src/koans/recursion.clj | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/koans/recursion.clj b/src/koans/recursion.clj index 6cd34ba..f4a843d 100644 --- a/src/koans/recursion.clj +++ b/src/koans/recursion.clj @@ -18,7 +18,7 @@ (= false (is-even? 1)) "Having too many stack frames requires explicit tail calls with recur" - (= false (is-even-bigint? 100003N)) + (= false (is-even-bigint? (bigint 100003))) "Simple things may appear simple." (= 1 (factorial 1)) @@ -33,7 +33,7 @@ (= 24 (factorial 4)) "You can even deal with very large numbers" - (= (factorial 1000N) (factorial 1000N)) + (= (factorial (bigint 1000)) (factorial (bigint 1000))) "But what happens when the machine limits you?" - (= (factorial 10000N) (factorial 10000N))) + (= (factorial (bigint 10000)) (factorial (bigint 10000))))