1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/scanf.rb (Scanf::FormatSpecifier#letter, #width): use matched

substring directly.

* ext/nkf/lib/kconv.rb (Kconv.conv): get rid of nil.to_a.

* test/ruby/test_assignment.rb, test/ruby/test_iterator.rb: followed
  change of sample/test.rb.

* test/net/http/test_http.rb: removed superfluous splatting stars.


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9360 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-10-08 10:45:52 +00:00
parent 8fb6f790fe
commit ec12edb11c
6 changed files with 18 additions and 69 deletions

View file

@ -31,7 +31,7 @@ module TestNetHTTP_version_1_1_methods
end
def _test_get__get(http)
res, body = *http.get('/')
res, body = http.get('/')
assert_kind_of Net::HTTPResponse, res
assert_kind_of String, res.body
assert_kind_of String, body
@ -61,7 +61,7 @@ module TestNetHTTP_version_1_1_methods
def _test_get__chunked(http)
buf = ''
res, body = *http.get('/') {|s| buf << s }
res, body = http.get('/') {|s| buf << s }
assert_kind_of Net::HTTPResponse, res
# assert_kind_of String, res.body
# assert_kind_of String, body
@ -86,7 +86,7 @@ module TestNetHTTP_version_1_1_methods
end
def test_get__implicit_start
res, body = *new().get('/')
res, body = new().get('/')
assert_kind_of Net::HTTPResponse, res
assert_kind_of String, body
assert_kind_of String, res.body