1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/spec/ruby/core/range
mrkn f15069338d enumerator.c: Introduce Enumerator::ArithmeticSequence
This commit introduces new core class Enumerator::ArithmeticSequence.
Enumerator::ArithmeticSequence is a subclass of Enumerator, and
represents a number generator of an arithmetic sequence.

After this commit, Numeric#step and Range#step without blocks
returned an ArithmeticSequence object instead of an Enumerator.

This class introduces the following incompatibilities:

- You can create a zero-step ArithmeticSequence,
  and its size is not ArgumentError, but Infinity.
- You can create a negative-step ArithmeticSequence from a range.

[ruby-core:82816] [Feature #13904]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64205 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-06 09:08:28 +00:00
..
fixtures
shared Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
begin_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
bsearch_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
case_compare_spec.rb range.c: === by cover? 2018-05-17 10:46:21 +00:00
cover_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
dup_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
each_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
end_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
eql_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
equal_value_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
exclude_end_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
first_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
hash_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
include_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
initialize_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
inspect_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
last_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
max_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
member_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
min_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
new_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
range_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
size_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
step_spec.rb enumerator.c: Introduce Enumerator::ArithmeticSequence 2018-08-06 09:08:28 +00:00
to_a_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00
to_s_spec.rb Update to ruby/spec@c1b568b 2018-03-04 15:09:32 +00:00