summaryrefslogtreecommitdiff
path: root/test/ruby/test_variable.rb
diff options
context:
space:
mode:
authormame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-21 16:08:40 +0000
committermame <mame@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-21 16:08:40 +0000
commit45c2671e370a67686e0a64a7364baa00b628cceb (patch)
tree3b9d1091d12319feee6f67639786b5186d6b0bd2 /test/ruby/test_variable.rb
parentc758a9069377ed672d5e82a29e5c0555818d9928 (diff)
* test/ruby/test_bignum.rb, test/ruby/test_class.rb,
test/ruby/test_defined.rb, test/ruby/test_hash.rb, test/ruby/test_primitive.rb, test/ruby/test_variable.rb: add some tests (for coverage). git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@26370 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_variable.rb')
-rw-r--r--test/ruby/test_variable.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/test/ruby/test_variable.rb b/test/ruby/test_variable.rb
index a842c31c3f..990658cb5a 100644
--- a/test/ruby/test_variable.rb
+++ b/test/ruby/test_variable.rb
@@ -81,4 +81,8 @@ class TestVariable < Test::Unit::TestCase
def test_global_variable_0
assert_in_out_err(["-e", "$0='t'*1000;print $0"], "", /\At+\z/, [])
end
+
+ def test_global_variable_poped
+ assert_nothing_raised { eval("$foo; 1") }
+ end
end