blob: 29e6e105cfeec3f96d0e7e9a14a7cdf3911f2c2d (
plain)
1
2
3
4
5
6
7
8
9
|
require_relative '../../../spec_helper'
describe "Enumerator::ArithmeticSequence#end" do
it "returns the end of the sequence" do
1.step(10).end.should == 10
(1..10).step.end.should == 10
(1...10).step(17).end.should == 10
end
end
|