From 9557c8edf2dcf18fdece066c596a71696b2f2b30 Mon Sep 17 00:00:00 2001 From: Hiroshi SHIBATA Date: Fri, 9 Dec 2022 15:00:11 +0900 Subject: Merge net-protocol-0.2.1 --- test/net/protocol/test_protocol.rb | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'test/net') diff --git a/test/net/protocol/test_protocol.rb b/test/net/protocol/test_protocol.rb index 1e38dd6c26..2f42fa3236 100644 --- a/test/net/protocol/test_protocol.rb +++ b/test/net/protocol/test_protocol.rb @@ -57,6 +57,14 @@ class TestProtocol < Test::Unit::TestCase mockio end + def test_readuntil + assert_output("", "") do + sio = StringIO.new("12345".dup) + io = Net::BufferedIO.new(sio) + assert_equal "12345", io.readuntil("5") + end + end + def test_write0_multibyte mockio = create_mockio(max: 1) io = Net::BufferedIO.new(mockio) -- cgit v1.2.3