mirror of
https://github.com/ruby/ruby.git
synced 2025-08-23 13:04:13 +02:00

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
11 lines
273 B
Ruby
11 lines
273 B
Ruby
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
|