diff options
Diffstat (limited to 'test/ipaddress/ipv4_test.rb')
-rw-r--r-- | test/ipaddress/ipv4_test.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/test/ipaddress/ipv4_test.rb b/test/ipaddress/ipv4_test.rb index 19e0450..5e8d5a9 100644 --- a/test/ipaddress/ipv4_test.rb +++ b/test/ipaddress/ipv4_test.rb @@ -387,8 +387,10 @@ class IPv4Test < Minitest::Test assert_equal false, ip3 < ip1 # ip1 should be equal to itself assert_equal true, ip1 == ip1 + assert_equal true, ip1.eql?(ip1) # ip1 should be equal to ip4 assert_equal true, ip1 == ip4 + assert_equal true, ip1.eql?(ip4) # test sorting arr = ["10.1.1.1/8","10.1.1.1/16","172.16.1.1/14"] assert_equal arr, [ip1,ip2,ip3].sort.map{|s| s.to_string} |