6 class ServerTest < Test::Unit::TestCase
8 system %q{./tcp_test > /dev/null &}
10 TCPSocket.open('localhost', 1337) do |socket|
11 ["Hello", "World", "foo bar"].each do |w|
13 assert_equal w.reverse, socket.read(w.length)
17 system %q{killall -9 tcp_test}