1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext
Jeremy Evans cfb9624460
Fix Array#[] with ArithmeticSequence with negative steps (#5739)
* Fix Array#[] with ArithmeticSequence with negative steps

Previously, Array#[] when called with an ArithmeticSequence
with a negative step did not handle all cases correctly,
especially cases involving infinite ranges, inverted ranges,
and/or exclusive ends.

Fixes [Bug #18247]

* Add Array#slice tests for ArithmeticSequence with negative step to test_array

Add tests of rb_arithmetic_sequence_beg_len_step C-API function.

* Fix ext/-test-/arith_seq/beg_len_step/depend

* Rename local variables

* Fix a variable name

Co-authored-by: Kenta Murata <3959+mrkn@users.noreply.github.com>
2022-08-11 19:16:49 +09:00
..
-test- Fix Array#[] with ArithmeticSequence with negative steps (#5739) 2022-08-11 19:16:49 +09:00
bigdecimal [ruby/bigdecimal] Updated to use the correct spec for muilti license 2022-08-03 11:04:31 +09:00
cgi/escape Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
continuation [Feature #18249] Update dependencies 2022-02-22 09:55:21 -05:00
coverage Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
date [ruby/date] bump up to 3.2.3 2022-08-08 23:59:12 +09:00
digest Revert "* expand tabs. [ci skip]" 2022-07-30 17:03:13 +09:00
etc [ruby/etc] [DOC] Markup constant path names 2022-06-19 11:06:43 +09:00
fcntl [Feature #18249] Update dependencies 2022-02-22 09:55:21 -05:00
fiddle Rename rb_ary_tmp_new to rb_ary_hidden_new 2022-07-26 09:12:09 -04:00
io Revert "* expand tabs. [ci skip]" 2022-07-30 17:29:56 +09:00
json [flori/json] Stop including the parser source __LINE__ in exceptions 2022-07-29 19:10:10 +09:00
monitor [Feature #18249] Update dependencies 2022-02-22 09:55:21 -05:00
nkf Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
objspace Adjust indents [ci skip] 2022-07-22 21:59:27 +09:00
openssl Rename rb_ary_tmp_new to rb_ary_hidden_new 2022-07-26 09:12:09 -04:00
pathname [ruby/pathname] Fix autoload of FileUtils 2022-07-27 21:05:10 +09:00
psych [ruby/psych] Raise specific error when an anchor isn't defined 2022-08-09 01:33:34 +09:00
pty Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
racc/cparse [Feature #18249] Update dependencies 2022-02-22 09:55:21 -05:00
rbconfig/sizeof [Feature #18249] Update dependencies 2022-02-22 09:55:21 -05:00
readline Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
ripper [Feature #18249] Update dependencies 2022-02-22 09:55:21 -05:00
rubyvm
socket Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
stringio [ruby/stringio] Fix the result of StringIO#truncate so compatible with File 2022-07-01 00:52:29 +09:00
strscan [Feature #18249] Update dependencies 2022-02-22 09:55:21 -05:00
syslog Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
win32 Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
win32ole Expand tabs [ci skip] 2022-07-21 09:42:04 -07:00
zlib Removed mswin patch for zlib-1.2.11 2022-04-05 14:30:47 +09:00
.document Remove unnecessary files from .document 2020-12-20 16:00:13 +09:00
extmk.rb Create temporary file exclusively and clean 2022-08-07 18:25:10 +09:00
Setup
Setup.atheos
Setup.nt