From 7b3a531fffcac5ba09edd050feccd9149205cd7e Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Sat, 17 Jun 2023 12:29:28 +0900 Subject: Split the bmethod proc test to avoid redefinition --- test/ruby/test_call.rb | 2 ++ 1 file changed, 2 insertions(+) (limited to 'test/ruby') 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] -- cgit v1.2.3