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