diff options
-rw-r--r-- | lib/ipaddr.rb | 5 | ||||
-rw-r--r-- | test/test_ipaddr.rb | 11 |
2 files changed, 16 insertions, 0 deletions
@@ -466,6 +466,11 @@ class IPAddr af, _to_string(@addr), _to_string(@mask_addr)) end protected # Set +@addr+, the internal stored ip address, to given +addr+. The @@ -220,6 +220,17 @@ class TC_IPAddr < Test::Unit::TestCase assert_equal("3ffe:0505:0002:0000:0000:0000:0000:0001", IPAddr.new("3ffe:505:2::1").to_string) assert_equal("3ffe:505:2::1", IPAddr.new("3ffe:505:2::1").to_s) end end class TC_Operator < Test::Unit::TestCase |