1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

rename tests classes.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@22225 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
akr 2009-02-11 04:17:57 +00:00
parent c9c3437b20
commit a8de15e0b5
6 changed files with 6 additions and 6 deletions

View file

@ -4,7 +4,7 @@ begin
rescue LoadError
end
class TestBasicSocket < Test::Unit::TestCase
class TestSocket_BasicSocket < Test::Unit::TestCase
def inet_stream
sock = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
yield sock

View file

@ -7,7 +7,7 @@ require "test/unit"
require "tempfile"
require "timeout"
class TestNonblockSocket < Test::Unit::TestCase
class TestSocketNonblock < Test::Unit::TestCase
def test_accept_nonblock
serv = Socket.new(Socket::AF_INET, Socket::SOCK_STREAM, 0)
serv.bind(Socket.sockaddr_in(0, "127.0.0.1"))

View file

@ -1,7 +1,7 @@
require 'test/unit'
require 'socket'
class TestSockOpt < Test::Unit::TestCase
class TestSocketOption < Test::Unit::TestCase
def test_bool
opt = Socket::Option.bool(:INET, :SOCKET, :KEEPALIVE, true)
assert_equal(1, opt.int)

View file

@ -5,7 +5,7 @@ rescue LoadError
end
class TestTCPSocket < Test::Unit::TestCase
class TestSocket_TCPSocket < Test::Unit::TestCase
def test_recvfrom
svr = TCPServer.new("localhost", 0)
th = Thread.new {

View file

@ -5,7 +5,7 @@ rescue LoadError
end
class TestUDPSocket < Test::Unit::TestCase
class TestSocket_UDPSocket < Test::Unit::TestCase
def test_open
assert_nothing_raised { UDPSocket.open {} }
assert_nothing_raised { UDPSocket.open(Socket::AF_INET) {} }

View file

@ -7,7 +7,7 @@ require "test/unit"
require "tempfile"
require "tmpdir"
class TestUNIXSocket < Test::Unit::TestCase
class TestSocket_UNIXSocket < Test::Unit::TestCase
def test_fd_passing
r1, w = IO.pipe
s1, s2 = UNIXSocket.pair