mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* string.c (sym_to_i): remove obsolete method. preparation for
symbol GC. * numeric.c (fix_to_sym): ditto. * numeric.c (fix_id2name): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16312 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
9757c5450c
commit
640a62ea71
3 changed files with 9 additions and 56 deletions
|
@ -238,11 +238,4 @@ class TestFixnum < Test::Unit::TestCase
|
|||
assert(!(1.send(:<=, 0.0)))
|
||||
assert_raise(ArgumentError) { 1.send(:<=, nil) }
|
||||
end
|
||||
|
||||
def test_id2name
|
||||
assert_equal("foo", :foo.to_i.id2name)
|
||||
assert_nil(0.id2name)
|
||||
assert_equal(:foo, :foo.to_i.to_sym)
|
||||
assert_nil(0.to_sym)
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue