mirror of https://github.com/v2ray/v2ray-core
test case for ipnet
parent
903985eab5
commit
77359d8047
|
@ -39,4 +39,5 @@ func TestIPNet(t *testing.T) {
|
|||
assert.Bool(ipNet.Contains(net.ParseIP("1.0.0.1"))).IsFalse()
|
||||
assert.Bool(ipNet.Contains(net.ParseIP("8.8.8.7"))).IsFalse()
|
||||
assert.Bool(ipNet.Contains(net.ParseIP("8.8.8.8"))).IsTrue()
|
||||
assert.Bool(ipNet.Contains(net.ParseIP("2001:cdba::3257:9652"))).IsFalse()
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue