diff options
author | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-07 12:33:25 +0000 |
---|---|---|
committer | akr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2009-02-07 12:33:25 +0000 |
commit | 80a30aa2dfbdb899254210753958f80ef357b0d9 (patch) | |
tree | 27a9a2f3b4f076398c5e0ad41619583d4c8f5ddd | |
parent | 2c54866fc946ee2c648ac091d09aa7fd2b8ee40d (diff) | |
download | ruby-80a30aa2dfbdb899254210753958f80ef357b0d9.tar.gz ruby-80a30aa2dfbdb899254210753958f80ef357b0d9.tar.xz ruby-80a30aa2dfbdb899254210753958f80ef357b0d9.zip |
add a test.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@22112 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | test/socket/test_addrinfo.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/test/socket/test_addrinfo.rb b/test/socket/test_addrinfo.rb index 56704513b..3ef69c5c5 100644 --- a/test/socket/test_addrinfo.rb +++ b/test/socket/test_addrinfo.rb @@ -320,6 +320,7 @@ class TestSocketAddrinfo < Test::Unit::TestCase 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 |