summaryrefslogtreecommitdiff
path: root/test/test_ipaddr.rb
diff options
context:
space:
mode:
authorEspartaco Palma <[email protected]>2021-12-13 01:12:07 -0800
committerHiroshi SHIBATA <[email protected]>2022-02-10 17:18:05 +0900
commit9b768012f6bf5b5896d2d34feb69605d4ccc9ca3 ()
treefdc207e902f30614ed3556e78de9eb06cb43c474 /test/test_ipaddr.rb
parent100253c7f0f4d105ae88340a0314506cde69cfd2 (diff)
[ruby/ipaddr] Fix exception calling `to_range' after `freeze'
https://.com/ruby/ipaddr/commit/77fe1fca0a
-rw-r--r--test/test_ipaddr.rb22
1 files changed, 22 insertions, 0 deletions
@@ -255,6 +255,28 @@ class TC_IPAddr < Test::Unit::TestCase
assert_equal("1:2:3:4:5:6:7:8%ab0", a.to_s)
assert_raise(IPAddr::InvalidAddressError) { a.zone_id = '%' }
end
end
class TC_Operator < Test::Unit::TestCase