test_inadvertent_creation.rb: split test
* test/-ext-/symbol/test_inadvertent_creation.rb: split test_module_const_defined? from test_module_const_get, and assertion for the latter. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@48473 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
358840fa7d
commit
88212206f6
@ -36,6 +36,13 @@ module Test_Symbol
|
|||||||
cl = Class.new
|
cl = Class.new
|
||||||
name = noninterned_name("A")
|
name = noninterned_name("A")
|
||||||
|
|
||||||
|
assert_not_interned_error(cl, :const_get, name, Feature5072)
|
||||||
|
end
|
||||||
|
|
||||||
|
def test_module_const_defined?
|
||||||
|
cl = Class.new
|
||||||
|
name = noninterned_name("A")
|
||||||
|
|
||||||
assert_not_interned_false(cl, :const_defined?, name, Feature5072)
|
assert_not_interned_false(cl, :const_defined?, name, Feature5072)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user