Sha256: a34e21d33ae6108c95b69f9af9a26dbaf72adcfd255754817d9b295adc401167
Contents?: true
Size: 380 Bytes
Versions: 78
Compression:
Stored size: 380 Bytes
Contents
require File.expand_path('../../helper', __FILE__) require 'citrus/grammars' Citrus.require 'ipaddress' class IPAddressTest < Test::Unit::TestCase def test_v4 match = IPAddress.parse('1.2.3.4') assert(match) assert_equal(4, match.version) end def test_v6 match = IPAddress.parse('1:2:3:4::') assert(match) assert_equal(6, match.version) end end
Version data entries
78 entries across 78 versions & 2 rubygems