2016-01-20 11:45:50 -05:00
|
|
|
package vmess_test
|
|
|
|
|
|
|
|
import (
|
2016-01-21 07:05:16 -05:00
|
|
|
"testing"
|
2016-01-20 11:45:50 -05:00
|
|
|
|
2016-01-21 07:05:16 -05:00
|
|
|
"github.com/v2ray/v2ray-core/common/serial"
|
|
|
|
"github.com/v2ray/v2ray-core/common/uuid"
|
|
|
|
. "github.com/v2ray/v2ray-core/proxy/vmess"
|
|
|
|
v2testing "github.com/v2ray/v2ray-core/testing"
|
|
|
|
"github.com/v2ray/v2ray-core/testing/assert"
|
2016-01-20 11:45:50 -05:00
|
|
|
)
|
|
|
|
|
|
|
|
func TestCmdKey(t *testing.T) {
|
2016-01-21 07:05:16 -05:00
|
|
|
v2testing.Current(t)
|
2016-01-20 11:45:50 -05:00
|
|
|
|
2016-01-21 07:05:16 -05:00
|
|
|
id := NewID(uuid.New())
|
|
|
|
assert.Bool(serial.BytesLiteral(id.CmdKey()).All(0)).IsFalse()
|
2016-01-20 11:45:50 -05:00
|
|
|
}
|