git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@41037 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
naruse 2013-06-02 15:59:18 +00:00
Родитель dffcadb4ea
Коммит aa26e9d9c0
1 изменённых файлов: 4 добавлений и 4 удалений

Просмотреть файл

@ -26,21 +26,21 @@ class TestSocketOption < Test::Unit::TestCase
end
def test_ip_multicast_loop
sockopt = Socket::Option.ip_multicast_loop(128)
sockopt = Socket::Option.ipv4_multicast_loop(128)
assert_equal('#<Socket::Option: INET IP MULTICAST_LOOP 128>', sockopt.inspect)
assert_equal(Socket::AF_INET, sockopt.family)
assert_equal(Socket::IPPROTO_IP, sockopt.level)
assert_equal(Socket::IP_MULTICAST_LOOP, sockopt.optname)
assert_equal(128, sockopt.ip_multicast_loop)
assert_equal(128, sockopt.ipv4_multicast_loop)
end
def test_ip_multicast_ttl
sockopt = Socket::Option.ip_multicast_ttl(128)
sockopt = Socket::Option.ipv4_multicast_ttl(128)
assert_equal('#<Socket::Option: INET IP MULTICAST_TTL 128>', sockopt.inspect)
assert_equal(Socket::AF_INET, sockopt.family)
assert_equal(Socket::IPPROTO_IP, sockopt.level)
assert_equal(Socket::IP_MULTICAST_TTL, sockopt.optname)
assert_equal(128, sockopt.ip_multicast_ttl)
assert_equal(128, sockopt.ipv4_multicast_ttl)
end
def test_unpack