From b0ce13a378cd46f32bc1b1fa4ec41ac90e28853e Mon Sep 17 00:00:00 2001 From: Ryo Onodera Date: Fri, 6 Jul 2012 22:35:20 +0900 Subject: [PATCH] Add a spec for undefined behavior in Fixnum#** --- spec/ruby/core/fixnum/exponent_spec.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/ruby/core/fixnum/exponent_spec.rb b/spec/ruby/core/fixnum/exponent_spec.rb index d94f800f88..101f8449a5 100644 --- a/spec/ruby/core/fixnum/exponent_spec.rb +++ b/spec/ruby/core/fixnum/exponent_spec.rb @@ -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