Skip to content

Commit 41ec245

Browse files
zveroksoutaro
authored andcommitted
Support Range#step behavior change in Ruby 3.4
1 parent e80f75b commit 41ec245

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

test/stdlib/Range_test.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,15 @@ def test_size
110110
def test_step
111111
(1..10).step
112112
(1..10).step(2)
113+
113114
if_ruby(..."3.4.0", skip: false) do
114115
('A'...'Z').step { |s| s.downcase }
115116
('A'...'Z').step(2) { |s| s.downcase }
116117
end
118+
119+
if_ruby("3.4.0"..., skip: false) do
120+
('A'...'AAA').step('A') { |s| s.downcase }
121+
end
117122
end
118123

119124
def test_to_s

0 commit comments

Comments
 (0)