[前][次][番号順一覧][スレッド一覧]

ruby-changes:28985

From: naruse <ko1@a...>
Date: Mon, 3 Jun 2013 00:59:29 +0900 (JST)
Subject: [ruby-changes:28985] naruse:r41037 (trunk): follow r41034

naruse	2013-06-03 00:59:18 +0900 (Mon, 03 Jun 2013)

  New Revision: 41037

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=41037

  Log:
    follow r41034

  Modified files:
    trunk/test/socket/test_sockopt.rb

Index: test/socket/test_sockopt.rb
===================================================================
--- test/socket/test_sockopt.rb	(revision 41036)
+++ test/socket/test_sockopt.rb	(revision 41037)
@@ -26,21 +26,21 @@ class TestSocketOption < Test::Unit::Tes https://github.com/ruby/ruby/blob/trunk/test/socket/test_sockopt.rb#L26
   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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]