* 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:
ko1 2013-09-19 05:30:02 +00:00
parent 92cd831366
commit 1e27eda2fa
4 changed files with 20 additions and 2 deletions

View file

@ -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