From b1d918b58f41c7c47a49f162e6d471dfc1563b3b Mon Sep 17 00:00:00 2001 From: gotoyuzo Date: Mon, 17 Dec 2007 07:06:16 +0000 Subject: * ext/openssl/lib/openssl/buffering.rb (Buffering#gets): added second optional argument to specify maximum length limit. git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@14261 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- test/openssl/test_ssl.rb | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'test/openssl') diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb index b99b4a30b..5aee96e4f 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 -- cgit