summaryrefslogtreecommitdiff
path: root/test/openssl
diff options
context:
space:
mode:
authorgotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-17 07:06:16 +0000
committergotoyuzo <gotoyuzo@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2007-12-17 07:06:16 +0000
commitd4f5b77d3ab62c0b05feb2897bf93b2b3032dfeb (patch)
treef2efd03643d52ab9fe792bbc13c6320dee5397a8 /test/openssl
parent1e8c6e2ba4eb4305a756f650248283ecad4f36cb (diff)
* 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
Diffstat (limited to 'test/openssl')
-rw-r--r--test/openssl/test_ssl.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index b99b4a30b0..5aee96e4fa 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -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