1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
* test/ruby/test_rand.rb (TestRand#test_initialize_frozen): add
  missing test for [Bug #6540]

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36185 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2012-06-22 13:37:16 +00:00
parent 48fc312150
commit 91fcdd1865

View file

@ -485,6 +485,14 @@ END
}
end
def test_initialize_frozen
r = Random.new(0)
r.freeze
assert_raise(RuntimeError, '[Bug #6540]') do
r.__send__(:initialize, r)
end
end
def test_marshal_load_frozen
r = Random.new(0)
d = r.marshal_dump