mirror of
https://github.com/ruby/ruby.git
synced 2025-08-26 06:25:31 +02:00
* include/ruby/ruby.h: make Symbol objects frozen.
[Feature #8906] I want to freeze this good day, too. * test/ruby/test_eval.rb: catch up this change. * test/ruby/test_symbol.rb: add a test to check frozen symbols. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42974 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
92cd831366
commit
1e27eda2fa
4 changed files with 20 additions and 2 deletions
|
@ -128,7 +128,7 @@ class TestEval < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def forall_TYPE
|
||||
objects = [Object.new, [], nil, true, false, :sym] # TODO: check
|
||||
objects = [Object.new, [], nil, true, false] # TODO: check
|
||||
objects.each do |obj|
|
||||
obj.instance_variable_set :@ivar, 12
|
||||
yield obj
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue