summaryrefslogtreecommitdiff
path: root/test/test_ipaddr.rb
diff options
context:
space:
mode:
authorTaketo Takashima <[email protected]>2024-08-07 19:18:31 +0900
committergit <[email protected]>2025-04-26 11:56:42 +0000
commit687bd837244309fa293d6e08d0e13a662fce3a83 ()
tree0939e42e9f23f4061f8167e9fdb42df326a3c434 /test/test_ipaddr.rb
parentc0417bd094abcc68be913ce49a430df7cefbcd44 (diff)
[ruby/ipaddr] Added IPAddr#+/-
https://.com/ruby/ipaddr/commit/78b4f53bf5
-rw-r--r--test/test_ipaddr.rb40
1 files changed, 40 insertions, 0 deletions
@@ -399,6 +399,46 @@ class TC_Operator < Test::Unit::TestCase
assert_equal("::", @in6_addr_any.to_s)
end
def test_equal
assert_equal(true, @a == IPAddr.new("3FFE:505:2::"))
assert_equal(true, @a == IPAddr.new("3ffe:0505:0002::"))