Permalink
Browse files

Add test for 2**80.

  • Loading branch information...
1 parent 5c1d95d commit 138bbcf5954b6c9c30731e9a25ff7b82757060ad @colomon committed Jan 29, 2011
Showing with 7 additions and 0 deletions.
  1. +7 −0 t/03-playing.t
View
@@ -20,4 +20,11 @@ plan *;
"201st Fib is 453973694165307953197296969697410619233826";
}
+{
+ my @powers-of-two := Math::BigInt.new(1), * * 2 ... *;
+ isa_ok @powers-of-two[80], Math::BigInt, "2**80 is a BigInt";
+ is @powers-of-two[80], "1208925819614629174706176",
+ "2**80 is 1208925819614629174706176";
+}
+
done;

0 comments on commit 138bbcf

Please sign in to comment.