diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-30 15:16:07 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2014-04-30 15:16:07 +0000 |
commit | b52233555406f9cad23cac40fcee200ef2b3e5eb (patch) | |
tree | 14d15839a8b935c460deb0dd76b445d457aad562 /test | |
parent | 60375cd6ba034de80012726f50c7c43c3a8a3b68 (diff) | |
download | ruby-b52233555406f9cad23cac40fcee200ef2b3e5eb.tar.gz |
test_inadvertent_creation.rb: use Symbol.find
* ext/-test-/symbol/intern.c: Symbol.find is available now.
* test/-ext-/symbol/test_inadvertent_creation.rb (noninterned_name):
use Symbol.find instead.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45763 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/-ext-/symbol/test_inadvertent_creation.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/-ext-/symbol/test_inadvertent_creation.rb b/test/-ext-/symbol/test_inadvertent_creation.rb index 82a64034b1..238d3625e6 100644 --- a/test/-ext-/symbol/test_inadvertent_creation.rb +++ b/test/-ext-/symbol/test_inadvertent_creation.rb @@ -7,7 +7,7 @@ module Test_Symbol prefix += "_#{Thread.current.object_id.to_s(36).tr('-', '_')}" begin name = "#{prefix}_#{rand(0x1000).to_s(16)}_#{Time.now.usec}" - end while Bug::Symbol.interned?(name) + end while ::Symbol.find(name) name end @@ -16,7 +16,7 @@ module Test_Symbol end def assert_not_interned(name, msg = nil) - assert_not_send([Bug::Symbol, :interned?, name], msg) + assert_not_send([::Symbol, :find, name], msg) end def assert_not_interned_error(obj, meth, name, msg = nil) |