summaryrefslogtreecommitdiff
path: root/test/net/protocol/test_protocol.rb
diff options
context:
space:
mode:
Diffstat (limited to 'test/net/protocol/test_protocol.rb')
-rw-r--r--test/net/protocol/test_protocol.rb11
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