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
..
2022-07-21 09:42:04 -07:00
2022-07-21 09:42:04 -07:00
2022-08-08 23:59:12 +09:00
2022-07-30 17:03:13 +09:00
2022-07-30 17:29:56 +09:00
2022-07-21 09:42:04 -07:00
2022-07-22 21:59:27 +09:00
2022-07-21 09:42:04 -07:00
2022-07-21 09:42:04 -07:00
2022-07-21 09:42:04 -07:00
2022-07-21 09:42:04 -07:00
2022-07-21 09:42:04 -07:00
2022-07-21 09:42:04 -07:00
2022-04-05 14:30:47 +09:00