mirror of
https://github.com/v2fly/v2ray-core.git
synced 2025-01-05 00:47:51 -05:00
test case for ipnet
This commit is contained in:
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("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.7"))).IsFalse()
|
||||||
assert.Bool(ipNet.Contains(net.ParseIP("8.8.8.8"))).IsTrue()
|
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
Block a user