ruby-changes:10557
From: akr <ko1@a...>
Date: Sat, 7 Feb 2009 21:33:30 +0900 (JST)
Subject: [ruby-changes:10557] Ruby:r22112 (trunk): add a test.
akr 2009-02-07 21:33:25 +0900 (Sat, 07 Feb 2009) New Revision: 22112 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=22112 Log: add a test. Modified files: trunk/test/socket/test_addrinfo.rb Index: test/socket/test_addrinfo.rb =================================================================== --- test/socket/test_addrinfo.rb (revision 22111) +++ test/socket/test_addrinfo.rb (revision 22112) @@ -320,6 +320,7 @@ ai = Addrinfo.unix("/tmp/sock").family_addrinfo("/tmp/sock2") assert_equal("/tmp/sock2", ai.unix_path) assert_equal(Socket::SOCK_STREAM, ai.socktype) + assert_raise(SocketError) { Addrinfo.tcp("0.0.0.0", 4649).family_addrinfo("::1", 80) } end def random_port -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/