summaryrefslogtreecommitdiff
path: root/test/ruby/test_array.rb
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-16 00:21:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2009-10-16 00:21:49 +0000
commitc6b1f4ad06ab1dc94e95b854c7a768848a216e3e (patch)
treebf69a0d7189a2c50c4b72a3cd8b372c6b935e77b /test/ruby/test_array.rb
parent275816b62d778128f78ddd6464926e5e538ae6e5 (diff)
* test/ruby/test_array.rb: suppress warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@25357 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/ruby/test_array.rb')
-rw-r--r--test/ruby/test_array.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/ruby/test_array.rb b/test/ruby/test_array.rb
index 4c7c3dfb6d..5e3cf63141 100644
--- a/test/ruby/test_array.rb
+++ b/test/ruby/test_array.rb
@@ -1,6 +1,13 @@
require 'test/unit'
class TestArray < Test::Unit::TestCase
+ def setup
+ @verbose, $VERBOSE = $VERBOSE, nil
+ end
+ def teardown
+ $VERBOSE = @verbose
+ end
+
def test_0_literal
assert_equal([1, 2, 3, 4], [1, 2] + [3, 4])
assert_equal([1, 2, 1, 2], [1, 2] * 2)