mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* test: get rid of warnings.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@45313 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
af59443ab6
commit
5543a55b52
5 changed files with 6 additions and 6 deletions
|
@ -1093,7 +1093,7 @@ class TestFileUtils < Test::Unit::TestCase
|
|||
assert_output_lines([]) {
|
||||
touch 'tmp/b'
|
||||
# string input for group, -1 for user
|
||||
chown -1, input_group_2, 'tmp/b'
|
||||
chown(-1, input_group_2, 'tmp/b')
|
||||
assert_ownership_group @groups[1], 'tmp/b'
|
||||
}
|
||||
end if have_file_perm?
|
||||
|
|
|
@ -36,7 +36,7 @@ class TestMkmf
|
|||
end
|
||||
|
||||
def test_different_name_header
|
||||
bug8593 = '[ruby-core:55745] [Bug #8593]'
|
||||
_bug8593 = '[ruby-core:55745] [Bug #8593]'
|
||||
create_framework("MkmfTest", "test_mkmf.h") do |fw, hdrname|
|
||||
assert(!have_framework(fw), MKMFLOG)
|
||||
assert(have_framework([fw, hdrname]), MKMFLOG)
|
||||
|
|
|
@ -461,7 +461,7 @@ class TestStringScanner < Test::Unit::TestCase
|
|||
assert_equal true, s[4].tainted?
|
||||
|
||||
s = StringScanner.new("foo bar baz")
|
||||
s.scan /(?<a>\w+) (?<b>\w+) (\w+)/
|
||||
s.scan(/(?<a>\w+) (?<b>\w+) (\w+)/)
|
||||
assert_equal 'foo', s[1]
|
||||
assert_equal 'bar', s[2]
|
||||
assert_nil s[3]
|
||||
|
|
|
@ -2,8 +2,8 @@ require 'test/unit'
|
|||
|
||||
class TestRedefinition < Test::Unit::TestCase
|
||||
def test_redefinition
|
||||
assert_match /^test\/unit warning: method TestForTestRedefinition#test_redefinition is redefined$/,
|
||||
redefinition
|
||||
assert_match(/^test\/unit warning: method TestForTestRedefinition#test_redefinition is redefined$/,
|
||||
redefinition)
|
||||
end
|
||||
|
||||
def redefinition(*args)
|
||||
|
|
|
@ -349,7 +349,7 @@ GET /
|
|||
l = msg.size
|
||||
req.continue
|
||||
assert_not_equal l, msg.size
|
||||
assert_match /HTTP\/1.1 100 continue\r\n\r\n\z/, msg
|
||||
assert_match(/HTTP\/1.1 100 continue\r\n\r\n\z/, msg)
|
||||
assert !req['expect']
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in a new issue