diff options
author | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-12-09 15:00:11 +0900 |
---|---|---|
committer | Hiroshi SHIBATA <hsbt@ruby-lang.org> | 2022-12-09 16:36:22 +0900 |
commit | 9557c8edf2dcf18fdece066c596a71696b2f2b30 (patch) | |
tree | 521fa0a5ffa1805e6003e52f81e8cae6419fb350 /test/net | |
parent | 4cbd3e19447591f66c3ab08c322a32aa53eae74f (diff) | |
download | ruby-9557c8edf2dcf18fdece066c596a71696b2f2b30.tar.gz |
Merge net-protocol-0.2.1
Diffstat (limited to 'test/net')
-rw-r--r-- | test/net/protocol/test_protocol.rb | 8 |
1 files changed, 8 insertions, 0 deletions
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) |