1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test
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
..
-ext- Fix Array#[] with ArithmeticSequence with negative steps (#5739) 2022-08-11 19:16:49 +09:00
base64
benchmark
bigdecimal
cgi [ruby/cgi] jruby support 2022-06-06 18:13:01 +09:00
coverage Fix a regression of b2e58b02ae 2022-07-11 23:38:37 +09:00
csv
date [ruby/date] Fix Time#to_datetime before calendar reform 2022-08-08 23:50:17 +09:00
did_you_mean Manually merged https://github.com/ruby/did_you_mean/pull/177 2022-06-07 15:24:48 +09:00
digest [ruby/digest] Ignore test_ractor.rb on non-Ractor ruby 2022-07-21 11:45:48 +09:00
drb
dtrace
erb
error_highlight [ruby/error_highlight] Make backtrace_location keyword work 2022-08-10 21:19:10 +09:00
etc
excludes Tentatively exclude the test that triggers ruby/psych#572 2022-08-09 03:09:33 +09:00
fiber Retain reference to blocking fibers. 2022-05-25 15:24:24 +12:00
fiddle
fileutils [ruby/fileutils] Add an octal prefix to clarify to be octal 2022-07-19 17:33:44 +09:00
fixtures/fake_sorted_set_gem
io Fix the missing brackets 2022-07-28 19:25:52 +09:00
irb [ruby/irb] Properly reset USE_COLORIZE after changing it in tests 2022-06-29 00:23:18 +09:00
json [flori/json] test parsing of unicode, mixing literal characters with escaped 2022-07-29 19:10:10 +09:00
lib Fix #5872 for MJIT GitHub Actions 2022-07-10 23:10:36 -07:00
logger
mkmf
monitor
net [ruby/net-http] Make Net::HTTPHeader#content_range return nil on non-byte units 2022-06-16 23:35:27 +09:00
nkf
objspace Dump non-ASCII char as unsigned 2022-07-22 09:56:48 +09:00
open-uri
openssl [ruby/openssl] Skip a new test when old OpenSSL 2022-07-09 15:26:32 +09:00
optparse [ruby/optparse] Also accept '-' as an optional argument (https://github.com/ruby/optparse/pull/35) 2022-07-29 19:10:10 +09:00
ostruct
pathname
psych [ruby/psych] Raise specific error when an anchor isn't defined 2022-08-09 01:33:34 +09:00
racc [ruby/racc] Show diffs 2022-05-20 17:49:15 +09:00
rdoc [ruby/rdoc] Allow multiple footnotes without in-between blank lines 2022-08-08 01:12:49 +09:00
readline
reline [ruby/reline] Rename dialog_pointer_* to dialog_highlight_* 2022-07-22 23:34:49 +09:00
resolv
rinda Revert "Try reproducing the MinGW hang on time command (#6168)" 2022-07-28 16:12:46 -07:00
ripper ripper: Check if anonymous parameters defined [Bug #18828] 2022-06-14 20:41:41 +09:00
ruby Fix Array#[] with ArithmeticSequence with negative steps (#5739) 2022-08-11 19:16:49 +09:00
rubygems Merge rubygems/bundler HEAD. 2022-08-09 12:05:19 +09:00
socket
stringio [ruby/stringio] Fix the result of StringIO#truncate so compatible with File 2022-07-01 00:52:29 +09:00
strscan
syslog
uri
win32ole
yaml
zlib
runner.rb
test_abbrev.rb
test_delegate.rb
test_extlibs.rb
test_find.rb
test_forwardable.rb
test_getoptlong.rb
test_ipaddr.rb
test_mutex_m.rb
test_observer.rb
test_open3.rb
test_pp.rb
test_prettyprint.rb
test_pstore.rb [ruby/pstore] Emphasize keys instead of roots, values instead of objects (https://github.com/ruby/pstore/pull/7) 2022-07-07 07:05:01 +09:00
test_pty.rb
test_rbconfig.rb
test_securerandom.rb
test_set.rb [ruby/set] Get rid of use of Gem::Version 2022-07-14 17:13:52 +09:00
test_shellwords.rb
test_singleton.rb
test_sorted_set.rb
test_syslog.rb
test_tempfile.rb
test_time.rb
test_timeout.rb
test_tmpdir.rb
test_trick.rb
test_tsort.rb
test_unicode_normalize.rb
test_weakref.rb