summaryrefslogtreecommitdiff
path: root/jni/ruby/test/net/http/test_buffered_io.rb
blob: e24e7c1ed91aae23e9031d92be599b13889e40f7 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
require 'test/unit'
require 'net/http'
require 'stringio'

require_relative 'utils'

module Net
  class TestBufferedIO < Test::Unit::TestCase
    def test_eof?
      s = StringIO.new
      assert s.eof?
      bio = BufferedIO.new(s)
      assert_equal s, bio.io
      assert_equal s.eof?, bio.eof?
    end
  end
end