blob: 8b00fd4309770b051cef8ec3c1db1fed144e75ff (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
require_relative '../../../spec_helper'
ruby_version_is "2.6" do
describe "Enumerator::ArithmeticSequence#step" do
it "returns the original value given to step method" do
(1..10).step.step.should == 1
(1..10).step(3).step.should == 3
1.step(10).step.should == 1
1.step(10, 3).step.should == 3
end
end
end
|