1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/test/-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
..
arith_seq Fix Array#[] with ArithmeticSequence with negative steps (#5739) 2022-08-11 19:16:49 +09:00
array
bignum Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
bug_reporter Match +YJIT in Ruby desc when testing segv (#6141) 2022-07-20 10:48:58 -04:00
class
debug Fix rb_profile_frames output includes dummy main thread frame 2022-07-26 10:43:44 +09:00
eval respect current frame of rb_eval_string 2022-08-01 17:48:05 +09:00
exception
file
float
funcall Avoid defining the same test class in multiple files 2022-04-22 15:00:16 -07:00
gvl
hash
integer
iseq_load
iter
load
marshal
method
num2int
path_to_class
popen_deadlock
postponed_job
proc
rational
st
string
struct
symbol [Bug #18905] Check symbol name types more strictly 2022-07-20 00:23:38 +09:00
thread GVL Instrumentation: remove the EXITED count assertion 2022-07-13 19:39:31 +02:00
thread_fd
time
tracepoint
typeddata
vm
wait
win32
test_abi.rb Fix tests for ABI incompatible binary error messags 2022-07-17 10:18:08 +09:00
test_bug-3571.rb
test_bug-5832.rb
test_bug-14834.rb
test_enumerator_kw.rb
test_notimplement.rb
test_printf.rb
test_random.rb
test_recursion.rb
test_scan_args.rb