mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
275816b62d
commit
c6b1f4ad06
1 changed files with 7 additions and 0 deletions
|
@ -1,6 +1,13 @@
|
||||||
require 'test/unit'
|
require 'test/unit'
|
||||||
|
|
||||||
class TestArray < Test::Unit::TestCase
|
class TestArray < Test::Unit::TestCase
|
||||||
|
def setup
|
||||||
|
@verbose, $VERBOSE = $VERBOSE, nil
|
||||||
|
end
|
||||||
|
def teardown
|
||||||
|
$VERBOSE = @verbose
|
||||||
|
end
|
||||||
|
|
||||||
def test_0_literal
|
def test_0_literal
|
||||||
assert_equal([1, 2, 3, 4], [1, 2] + [3, 4])
|
assert_equal([1, 2, 3, 4], [1, 2] + [3, 4])
|
||||||
assert_equal([1, 2, 1, 2], [1, 2] * 2)
|
assert_equal([1, 2, 1, 2], [1, 2] * 2)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue