diff options
author | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-06 05:30:17 +0000 |
---|---|---|
committer | naruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2012-11-06 05:30:17 +0000 |
commit | ccd7a805cc4ceb274ece6ba519fa233ed8d210c2 (patch) | |
tree | 3c0996fe1ae2a0ee0f1d8cf6dc2346b25264fd37 /test | |
parent | a6ec2584527fb4d6f3a65a2dd16dc02eabdfcec6 (diff) | |
download | ruby-ccd7a805cc4ceb274ece6ba519fa233ed8d210c2.tar.gz |
* lib/net/protocol.rb (Net::InternetMessageIO#each_crlf_line):
don't use /n in universal regexp. [ruby-dev:46394] [Bug #7278]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@37487 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test')
-rw-r--r-- | test/net/protocol/test_protocol.rb | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/net/protocol/test_protocol.rb b/test/net/protocol/test_protocol.rb new file mode 100644 index 0000000000..5fe3023015 --- /dev/null +++ b/test/net/protocol/test_protocol.rb @@ -0,0 +1,11 @@ +require "test/unit" +require "net/protocol" +require "stringio" + +class TestProtocol < Test::Unit::TestCase + def test_each_crlf_line + assert_output('', '') do + Net::InternetMessageIO.new(StringIO.new("")).write_message("\u3042\r\n\u3044\r\n\u3046") + end + end +end |