summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorbluemonk <ceresa@gmail.com>2010-09-07 18:08:02 +0200
committerbluemonk <ceresa@gmail.com>2010-09-07 18:08:02 +0200
commitf9747c75e0038cdfe1ac8c1605d9f1c63f0369d5 (patch)
tree8f17439dd62c5b5618993713292389bdcbf19e28 /test
parent08b1cef4690f11e6217c301356e07d4aeabac833 (diff)
downloadipaddress-f9747c75e0038cdfe1ac8c1605d9f1c63f0369d5.tar.gz
Formatted README, rewrote IPAddress::parse and wrote IPv4#parse_classful testperform
Diffstat (limited to 'test')
-rw-r--r--test/ipaddress/ipv4_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/ipaddress/ipv4_test.rb b/test/ipaddress/ipv4_test.rb
index 417ea91..c81ee8c 100644
--- a/test/ipaddress/ipv4_test.rb
+++ b/test/ipaddress/ipv4_test.rb
@@ -468,6 +468,7 @@ class IPv4Test < Test::Unit::TestCase
assert_equal prefix, res.prefix
assert_equal "#{ip}/#{prefix}", res.to_string
end
+ assert_raise(ArgumentError){ @klass.parse_classful("192.168.256.257") }
end
end # class IPv4Test