From 7981865e180d5f416100d8c109cdfcc8768e9f95 Mon Sep 17 00:00:00 2001 From: "Yukihiro \"Matz\" Matsumoto" Date: Fri, 14 Feb 2025 09:25:54 +0900 Subject: [PATCH] test/string.rb: call #initialize via #__send__ to skip private check --- test/t/string.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/t/string.rb b/test/t/string.rb index 279530c8c..70f81f12a 100644 --- a/test/t/string.rb +++ b/test/t/string.rb @@ -485,10 +485,10 @@ end if UTF8STRING assert('String#initialize', '15.2.10.5.23') do a = '' - a.initialize('abc') + a.__send__(:initialize,'abc') assert_equal 'abc', a - a.initialize('abcdefghijklmnopqrstuvwxyz') + a.__send__(:initialize,'abcdefghijklmnopqrstuvwxyz') assert_equal 'abcdefghijklmnopqrstuvwxyz', a end