diff options
author | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-14 12:52:17 +0000 |
---|---|---|
committer | mame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-05-14 12:52:17 +0000 |
commit | d9270014832a6bea170e7c310e4550c2c515f855 (patch) | |
tree | 6a4ea2196159042da8c2751244d3e612d335217e /test/ruby/test_variable.rb | |
parent | c05f3423ae753a3d273cec6b14780268fc188c7b (diff) | |
download | ruby-d9270014832a6bea170e7c310e4550c2c515f855.tar.gz ruby-d9270014832a6bea170e7c310e4550c2c515f855.tar.xz ruby-d9270014832a6bea170e7c310e4550c2c515f855.zip |
* test/ruby/test_object.rb: new tests to achieve over 90% test
coverage of object.c, eval.c and eval_method.c.
* test/ruby/test_module.rb: ditto.
* test/ruby/test_trace.rb: ditto.
* test/ruby/test_integer.rb: ditto.
* test/ruby/test_float.rb: ditto.
* test/ruby/test_method.rb: ditto.
* test/ruby/test_variable.rb: ditto.
* test/ruby/test_eval.rb: ditto.
* test/ruby/test_exception.rb: ditto.
* test/ruby/test_class.rb: ditto.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16418 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_variable.rb')
-rw-r--r-- | test/ruby/test_variable.rb | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/test/ruby/test_variable.rb b/test/ruby/test_variable.rb index 601fc21c7..bfa5977f6 100644 --- a/test/ruby/test_variable.rb +++ b/test/ruby/test_variable.rb @@ -66,4 +66,13 @@ class TestVariable < Test::Unit::TestCase assert_equal([:x, :y], local_variables.sort) end.call end + + def test_local_variables3 + x = 1 + proc do |y| + 1.times do |z| + assert_equal([:x, :y, :z], local_variables.sort) + end + end.call + end end |