mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
test/string.rb: call #initialize via #__send__ to skip private check
This commit is contained in:
+2
-2
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user