Skip to content

Commit 5080de6

Browse files
committed
Stop assuming Array#each is written in C
Same as #1015, but for Array#each. We're thinking of rewriting it in Ruby, and I'd like to avoid failing on test-bundled-gems in the PR.
1 parent ab937ac commit 5080de6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/console/backtrace_test.rb

+2-2
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ def program
2222
14| end
2323
15| end
2424
16|
25-
17| [1, 2, 3].each do
25+
17| [1, 2, 3].reverse_each do
2626
18| Foo.new.first_call
2727
19| end
2828
RUBY
@@ -33,7 +33,7 @@ def test_backtrace_prints_c_method_frame
3333
type 'b 18'
3434
type 'c'
3535
type 'bt'
36-
assert_line_text(/\[C\] Array#each/)
36+
assert_line_text(/\[C\] Array#reverse_each/)
3737
type 'kill!'
3838
end
3939
end

test/console/break_test.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -388,7 +388,7 @@ def program
388388
2|
389389
3| result = ""
390390
4|
391-
5| [1, 2, 3].each do |i|
391+
5| [1, 2, 3].reverse_each do |i|
392392
6| result += i.to_s
393393
7| end
394394
8|

0 commit comments

Comments
 (0)