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

Symbol creation is not a problem now unless pinned down

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@67187 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2019-03-06 11:49:53 +00:00
parent 7fed9a2df5
commit 1598b5e7b3

View file

@ -20,21 +20,13 @@ module Test_Symbol
def assert_not_interned_error(obj, meth, name, msg = nil, &block)
e = assert_raise(NameError, msg) {obj.__send__(meth, name, &block)}
if Symbol === name
assert_not_pinneddown(name, msg)
else
assert_not_interned(name, msg)
end
assert_not_pinneddown(name, msg)
e
end
def assert_not_interned_false(obj, meth, name, msg = nil)
assert_not_send([obj, meth, name], msg)
if Symbol === name
assert_not_pinneddown(name, msg)
else
assert_not_interned(name, msg)
end
assert_not_pinneddown(name, msg)
end
Feature5072 = '[ruby-core:38367]'