From c6b1f4ad06ab1dc94e95b854c7a768848a216e3e Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 16 Oct 2009 00:21:49 +0000 Subject: [PATCH] * 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 --- test/ruby/test_array.rb | 7 +++++++ 1 file changed, 7 insertions(+) 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)