1require 'test/unit'
2require 'net/http'
3require 'stringio'
4
5require_relative 'utils'
6
7module Net
8  class TestBufferedIO < Test::Unit::TestCase
9    def test_eof?
10      s = StringIO.new
11      assert s.eof?
12      bio = BufferedIO.new(s)
13      assert_equal s, bio.io
14      assert_equal s.eof?, bio.eof?
15    end
16  end
17end
18