diff options
| author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-06-17 12:29:28 +0900 |
|---|---|---|
| committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-06-17 12:29:28 +0900 |
| commit | 7b3a531fffcac5ba09edd050feccd9149205cd7e (patch) | |
| tree | b92c213d0a908145742456670799a332c681cebe /test/ruby | |
| parent | 1ff20944107a20009445b1caac19a9b3728a3729 (diff) | |
Split the bmethod proc test to avoid redefinition
Diffstat (limited to 'test/ruby')
| -rw-r--r-- | test/ruby/test_call.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ruby/test_call.rb b/test/ruby/test_call.rb index 05a362e72f..88a0df4388 100644 --- a/test/ruby/test_call.rb +++ b/test/ruby/test_call.rb @@ -105,7 +105,9 @@ class TestCall < Test::Unit::TestCase define_singleton_method(:a, &pr) ary = [10] assert_equal(10, a(*ary)) + end + def test_call_bmethod_proc_restarg pr = proc{|*sym| sym} define_singleton_method(:a, &pr) ary = [10] |
