mirror of
https://github.com/ruby/ruby.git
synced 2025-09-23 12:33:56 +02:00
* 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
This commit is contained in:
parent
c758a90693
commit
45c2671e37
7 changed files with 38 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue