Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Stop assuming Array#each is written in C #1061

Merged
merged 1 commit into from
Jan 12, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions test/console/backtrace_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def program
14| end
15| end
16|
17| [1, 2, 3].each do
17| [1, 2, 3].reverse_each do
18| Foo.new.first_call
19| end
RUBY
Expand All @@ -33,7 +33,7 @@ def test_backtrace_prints_c_method_frame
type 'b 18'
type 'c'
type 'bt'
assert_line_text(/\[C\] Array#each/)
assert_line_text(/\[C\] Array#reverse_each/)
type 'kill!'
end
end
Expand Down
4 changes: 2 additions & 2 deletions test/console/break_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -384,11 +384,11 @@ def test_break_only_stops_when_path_matches
class BreakAtCMethod2Test < ConsoleTestCase
def program
<<~RUBY
1| binding.b(do: "b Array#each")
1| binding.b(do: "b Array#reverse_each")
2|
3| result = ""
4|
5| [1, 2, 3].each do |i|
5| [1, 2, 3].reverse_each do |i|
6| result += i.to_s
7| end
8|
Expand Down
Loading