diff options
author | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-29 12:20:19 +0000 |
---|---|---|
committer | knu <knu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2013-07-29 12:20:19 +0000 |
commit | 952e444877f53492ba0c8ddae7a1fe413b536ec1 (patch) | |
tree | 35b03f52d21e3051e66cca20d0ed545e948d5040 /enum.c | |
parent | f2f18dab7c038ddbef4cb2afe75f0e4f69320f19 (diff) | |
download | ruby-952e444877f53492ba0c8ddae7a1fe413b536ec1.tar.gz |
Add a frozenness check test for Enumerator::Lazy#initialize.
* test/ruby/test_lazy_enumerator.rb
(TestLazyEnumerator#test_initialize): Make sure
Enumerator::Lazy#initialize raises error if the object is
frozen. The check was performed by rb_ivar_set() before
rb_check_frozen() was added to enumerator_init().
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@42236 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'enum.c')
0 files changed, 0 insertions, 0 deletions