1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Get rid of defining methods for tests in core classes

Not to interfere in other tests.
This commit is contained in:
Nobuyoshi Nakada 2021-01-08 19:07:16 +09:00
parent 161a20df28
commit 590dc06e38
Notes: git 2021-01-09 22:38:31 +09:00
26 changed files with 406 additions and 392 deletions

View file

@ -3,6 +3,12 @@ require 'test/unit'
require '-test-/array/resize'
class Test_Array < Test::Unit::TestCase
using Module.new {
refine(Array) {
def __resize__(len) ::Bug::Array.__resize__(self, len); end
}
}
class TestResize < Test::Unit::TestCase
def test_expand
feature = '[ruby-dev:42912]'