mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Update to ruby/spec@4e486fa
This commit is contained in:
parent
f4502b001a
commit
34776105c8
46 changed files with 629 additions and 94 deletions
|
@ -466,6 +466,12 @@ describe :array_slice, shared: true do
|
|||
|
||||
obj = 8e19
|
||||
-> { array.send(@method, obj) }.should raise_error(RangeError)
|
||||
|
||||
# boundary value when longs are 64 bits
|
||||
-> { array.send(@method, 2.0**63) }.should raise_error(RangeError)
|
||||
|
||||
# just under the boundary value when longs are 64 bits
|
||||
array.send(@method, max_long.to_f.prev_float).should == nil
|
||||
end
|
||||
|
||||
it "raises a RangeError when the length is out of range of Fixnum" do
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue