mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* bignum.c (bignew_1): Bignum instances are frozen.
Feature #3222 * include/ruby/ruby.h: Fixnum instances are also frozen. * class.c (singleton_class_of): check Bignum before singleton cheking. * test/ruby/test_bignum.rb: add a test. * test/ruby/test_fixnum.rb: ditto. * test/ruby/marshaltestlib.rb, test/ruby/test_eval.rb, test/ruby/test_object.rb: catch up above changes. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37348 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
5dc9855a4f
commit
f3e5f2cd75
9 changed files with 33 additions and 22 deletions
|
@ -128,7 +128,7 @@ class TestEval < Test::Unit::TestCase
|
|||
end
|
||||
|
||||
def forall_TYPE
|
||||
objects = [Object.new, [], nil, true, false, 77, :sym] # TODO: check
|
||||
objects = [Object.new, [], nil, true, false, :sym] # 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