Skip to content

Commit

Permalink
Add a spec for undefined behavior in Fixnum#**
Browse files Browse the repository at this point in the history
  • Loading branch information
ryoqun committed Jul 6, 2012
1 parent 69bd7c2 commit b0ce13a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions spec/ruby/core/fixnum/exponent_spec.rb
Expand Up @@ -22,6 +22,8 @@
(2 ** 62).should == 4611686018427387904
(2 ** 63).should == 9223372036854775808
(2 ** 64).should == 18446744073709551616

(8 ** 23).should == 590295810358705651712
end

it "raises negative numbers to the given power" do
Expand Down

0 comments on commit b0ce13a

Please sign in to comment.