mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* ext/openssl/lib/openssl/buffering.rb (Buffering#gets): added second
optional argument to specify maximum length limit. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@14261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
1e8c6e2ba4
commit
d4f5b77d3a
3 changed files with 14 additions and 1 deletions
|
|
@ -136,6 +136,11 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
|
|||
str = "x" * 100 + "\n"
|
||||
ssl.puts(str)
|
||||
assert_equal(str, ssl.gets)
|
||||
|
||||
str = "x" * 100
|
||||
ssl.puts(str)
|
||||
assert_equal(str, ssl.gets("\n", 100))
|
||||
assert_equal("\n", ssl.gets)
|
||||
}
|
||||
|
||||
# read and write
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue