1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-12-30 05:56:54 -05:00

format code

This commit is contained in:
V2Ray 2015-09-07 17:29:20 +02:00
parent 07b440fdcb
commit 901434f0a1

View File

@ -5,14 +5,14 @@ import (
) )
func TestAuthenticationResponseToBytes(t *testing.T) { func TestAuthenticationResponseToBytes(t *testing.T) {
socksVersion := uint8(5) socksVersion := uint8(5)
authMethod := uint8(1) authMethod := uint8(1)
response := Socks5AuthenticationResponse{socksVersion, authMethod} response := Socks5AuthenticationResponse{socksVersion, authMethod}
bytes := response.ToBytes() bytes := response.ToBytes()
if bytes[0] != socksVersion { if bytes[0] != socksVersion {
t.Errorf("Unexpected Socks version %d", bytes[0]) t.Errorf("Unexpected Socks version %d", bytes[0])
} }
if bytes[1] != authMethod { if bytes[1] != authMethod {
t.Errorf("Unexpected Socks auth method %d", bytes[1]) t.Errorf("Unexpected Socks auth method %d", bytes[1])
} }
} }