1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

fe80 should be case insensitive too

This commit is contained in:
Kazuhiro NISHIYAMA 2020-11-09 16:16:30 +09:00
parent ba1472f43a
commit d14397bcc4
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A
2 changed files with 5 additions and 2 deletions

View file

@ -25,6 +25,9 @@ class TestResolvAddr < Test::Unit::TestCase
assert_match(Resolv::IPv6::Regex, "fe80:2:3:4:5:6:7:8%em1", bug17112)
assert_match(Resolv::IPv6::Regex, "fe80::20d:3aff:fe7d:9760%eth0", bug17112)
assert_match(Resolv::IPv6::Regex, "fe80::1%em1", bug17112)
assert_match(Resolv::IPv6::Regex, "FE80:2:3:4:5:6:7:8%EM1", bug17112)
assert_match(Resolv::IPv6::Regex, "FE80::20D:3AFF:FE7D:9760%ETH0", bug17112)
assert_match(Resolv::IPv6::Regex, "FE80::1%EM1", bug17112)
end
def test_valid_socket_ip_address_list