Permalink
Browse files

It is not Bignum, beyond the signed int.

  • Loading branch information...
1 parent d26e64c commit 7150a447a5f888acb8d9c672ac064c019b931dad @nurse nurse committed Jan 15, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/integer/round_spec.rb
@@ -40,8 +40,8 @@
lambda { 42.round(Float::INFINITY) }.should raise_error(RangeError)
end
- it "raises a RangeError when passed a Bignum" do
- lambda { 42.round(fixnum_max + 1) }.should raise_error(RangeError)
+ it "raises a RangeError when passed a beyond signed int" do
+ lambda { 42.round(1<<31) }.should raise_error(RangeError)
end
it "raises a TypeError when passed a String" do

0 comments on commit 7150a44

Please sign in to comment.