1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2026-01-01 23:15:21 -05:00

more update

This commit is contained in:
Darien Raymond
2015-12-02 16:27:55 +00:00
parent ec31c1fa7f
commit fa7c1069bc
13 changed files with 67 additions and 17 deletions

View File

@@ -41,7 +41,7 @@ func TestIPv6Address(t *testing.T) {
v2netassert.Address(addr).IsNotIPv4()
v2netassert.Address(addr).IsNotDomain()
assert.Bytes(addr.IP()).Equals(ip)
assert.Uint16(addr.Port().Value()).Equals(port.Value())
v2netassert.Port(addr.Port()).Equals(port)
assert.String(addr).Equals("[102:304:102:304:102:304:102:304]:443")
}
@@ -56,7 +56,7 @@ func TestDomainAddress(t *testing.T) {
v2netassert.Address(addr).IsNotIPv6()
v2netassert.Address(addr).IsNotIPv4()
assert.StringLiteral(addr.Domain()).Equals(domain)
assert.Uint16(addr.Port().Value()).Equals(port.Value())
v2netassert.Port(addr.Port()).Equals(port)
assert.String(addr).Equals("v2ray.com:443")
}