diff --git a/spec/ruby/core/array/shared/slice.rb b/spec/ruby/core/array/shared/slice.rb index 1ad1bc6e0a7..ab83d25832c 100644 --- a/spec/ruby/core/array/shared/slice.rb +++ b/spec/ruby/core/array/shared/slice.rb @@ -552,9 +552,9 @@ def to.to_int() -2 end it "can accept nil...nil ranges" do a = [0, 1, 2, 3, 4, 5] - a.send(@method, (nil..nil)).should == a - a.send(@method, (nil...)).should == a - a.send(@method, (..nil)).should == a + a.send(@method, eval("(nil...nil)")).should == a + a.send(@method, eval("(...nil)"))).should == a + a.send(@method, eval("(nil..)"))).should == a end end end