diff options
| author | bluemonk <ceresa@gmail.com> | 2013-10-20 15:46:59 +0200 |
|---|---|---|
| committer | bluemonk <ceresa@gmail.com> | 2013-10-20 15:46:59 +0200 |
| commit | 1624d53bfe26c044737929db26503b99f6b76050 (patch) | |
| tree | f68dfa40cf77ba25dc1df3b6df1e27a2827bd828 /test/ipaddress | |
| parent | 8da374226a780a1ed5bd458ef27c6c3fd4602f4d (diff) | |
| parent | 1a8ce1826be6b91f6a634a47a308272d2f72c957 (diff) | |
| download | ipaddress-develop.tar.gz | |
Merge branch 'brona-master' into developdevelop
Diffstat (limited to 'test/ipaddress')
| -rw-r--r-- | test/ipaddress/ipv6_test.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/test/ipaddress/ipv6_test.rb b/test/ipaddress/ipv6_test.rb index 9d9ff3e..d4c2344 100644 --- a/test/ipaddress/ipv6_test.rb +++ b/test/ipaddress/ipv6_test.rb @@ -31,7 +31,8 @@ class IPv6Test < Test::Unit::TestCase "1080::8:800:200C:417A" => 21932261930451111902915077091070067066} @invalid_ipv6 = [":1:2:3:4:5:6:7", - ":1:2:3:4:5:6:7"] + ":1:2:3:4:5:6:7", + "2002:516:2:200"] @networks = { "2001:db8:1:1:1:1:1:1/32" => "2001:db8::/32", @@ -257,7 +258,7 @@ class IPv6Test < Test::Unit::TestCase compressed = "2001:db8:0:cd30::" expanded = "2001:0db8:0000:cd30:0000:0000:0000:0000" assert_equal expanded, @klass.expand(compressed) - assert_not_equal expanded, @klass.expand("2001:0db8:0:cd3") + assert_not_equal expanded, @klass.expand("2001:0db8:0::cd3") assert_not_equal expanded, @klass.expand("2001:0db8::cd30") assert_not_equal expanded, @klass.expand("2001:0db8::cd3") end @@ -266,7 +267,7 @@ class IPv6Test < Test::Unit::TestCase compressed = "2001:db8:0:cd30::" expanded = "2001:0db8:0000:cd30:0000:0000:0000:0000" assert_equal compressed, @klass.compress(expanded) - assert_not_equal compressed, @klass.compress("2001:0db8:0:cd3") + assert_not_equal compressed, @klass.compress("2001:0db8:0::cd3") assert_not_equal compressed, @klass.compress("2001:0db8::cd30") assert_not_equal compressed, @klass.compress("2001:0db8::cd3") end |
