Nobuyoshi Nakada
9c73c75624
Use Integer instead of Fixnum/Bignum
2020-12-21 01:19:55 +09:00
Kenta Murata
f754b42285
numeric.c, range.c: prohibit zero step
...
* numeric.c: prohibit zero step in Numeric#step
* range.c: prohibit zero step in Range#step
* Fix ruby-spec
[Feature #15573 ]
2020-10-23 15:26:51 +09:00
Benoit Daloze
3f6c0a6d74
Update to ruby/spec@e829fb0
2020-09-17 11:42:26 +02:00
Benoit Daloze
5aaa75e7c1
Update to ruby/spec@032ee74
2020-05-03 12:28:29 +02:00
Nobuyoshi Nakada
826f44834f
Drop support for ruby 2.4 from ruby/spec
2020-04-01 15:36:20 +09:00
Benoit Daloze
1c938a72aa
Update to ruby/spec@519df35
2019-09-29 16:03:58 +02:00
Benoit Daloze
5c276e1cc9
Update to ruby/spec@875a09e
2019-07-27 12:40:09 +02:00
Benoit Daloze
a1b4816759
Update to ruby/spec@15c9619
2019-04-27 18:53:23 +02:00
eregon
da7976235f
Update to ruby/spec@7a16e01
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-21 15:38:59 +00:00
eregon
75334db3c6
Update to ruby/spec@6cf8ebe
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67030 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-02-07 16:35:33 +00:00
eregon
6204e0804b
Update to ruby/spec@35a9fba
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66888 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2019-01-20 20:38:57 +00:00
eregon
e87fb88be8
Update to ruby/spec@241f9e7
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64831 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-09-25 10:41:16 +00:00
eregon
f3b347e109
Add version guards for Enumerator::ArithmeticSequence
...
* And keep specs for older versions.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64411 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-08-17 11:22:30 +00:00
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
eregon
4fbb9aa3cb
Update to ruby/spec@6f38a82
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63293 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-04-28 19:50:06 +00:00
eregon
401b64c4e8
Update to ruby/spec@c1b568b
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62656 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-03-04 15:09:32 +00:00
eregon
3fa5bd38af
Update to ruby/spec@83063a3
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@62094 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2018-01-29 16:08:16 +00:00
eregon
8c5b60eb22
Update to ruby/spec@a6b8805
...
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@60525 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-10-28 15:15:48 +00:00
eregon
1d15d5f080
Move spec/rubyspec to spec/ruby for consistency
...
* Other ruby implementations use the spec/ruby directory.
[Misc #13792 ] [ruby-core:82287]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59979 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
2017-09-20 20:18:52 +00:00