summaryrefslogtreecommitdiff
path: root/test/resolv
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-30 07:03:47 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2014-12-30 07:03:47 +0000
commita0325ea70402a11c3d04cafd43753344bb2648c7 (patch)
treeb85a77d5dedee3d9fcfb5db33a47e3b9ff41bab1 /test/resolv
parent5cc1e95be3f552b907b3f5cfc2d1d79907087273 (diff)
resolv.rb: dots differences
* lib/resolv.rb (Resolv::DNS::Name): names with different dots should be different. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@49071 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'test/resolv')
-rw-r--r--test/resolv/test_dns.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/test/resolv/test_dns.rb b/test/resolv/test_dns.rb
index 8334622410..00e5142272 100644
--- a/test/resolv/test_dns.rb
+++ b/test/resolv/test_dns.rb
@@ -177,4 +177,10 @@ class TestResolvDNS < Test::Unit::TestCase
end
end
end
+
+ def test_case_insensitive_name
+ name1 = Resolv::DNS::Name.create("example.org")
+ name2 = Resolv::DNS::Name.create("ex.ampl.eo.rg")
+ assert_not_equal(name1, name2, "different dots")
+ end
end