Sha256: 019c755116994fe294e17502791136c44229c22b37a826936fd88607ac330139

Contents?: true

Size: 1.12 KB

Versions: 91

Compression:

Stored size: 1.12 KB

Contents

# Copyright (C) 2014  Ruby-GNOME2 Project Team
#
# This library is free software; you can redistribute it and/or
# modify it under the terms of the GNU Lesser General Public
# License as published by the Free Software Foundation; either
# version 2.1 of the License, or (at your option) any later version.
#
# This library is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# Lesser General Public License for more details.
#
# You should have received a copy of the GNU Lesser General Public
# License along with this library; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA  02110-1301  USA

class TestInputStream < Test::Unit::TestCase
  include GioTestUtils::SocketClient

  def setup
    setup_socket_client
    @stream = @connection.input_stream
  end

  def teardown
    teardown_socket_client
  end

  def test_read
    data = "Hello\n"
    client = @server.accept
    client.write(data)
    client.flush
    assert_equal(data, @stream.read)
  end
end

Version data entries

91 entries across 83 versions & 2 rubygems

Version Path
gio2-2.2.4-x64-mingw32 test/test-input-stream.rb
gio2-2.2.4-x86-mingw32 test/test-input-stream.rb
gio2-2.2.4 test/test-input-stream.rb
gio2-2.2.3-x86-mingw32 test/test-input-stream.rb
gio2-2.2.3 test/test-input-stream.rb
gio2-2.2.2 test/test-input-stream.rb
gio2-2.2.2-x86-mingw32 test/test-input-stream.rb
gio2-2.2.1-x86-mingw32 test/test-input-stream.rb
gio2-2.2.1 test/test-input-stream.rb
gio2-2.2.0-x86-mingw32 test/test-input-stream.rb
gio2-2.2.0 test/test-input-stream.rb