1
0
mirror of https://github.com/v2fly/v2ray-core.git synced 2024-11-16 17:38:45 -05:00
v2fly/common/protocol/id_test.go

18 lines
324 B
Go
Raw Normal View History

package protocol_test
2016-01-20 11:45:50 -05:00
import (
2016-01-21 07:05:16 -05:00
"testing"
2016-01-20 11:45:50 -05:00
2016-08-20 14:55:45 -04:00
"v2ray.com/core/common/predicate"
. "v2ray.com/core/common/protocol"
"v2ray.com/core/common/uuid"
"v2ray.com/core/testing/assert"
2016-01-20 11:45:50 -05:00
)
func TestCmdKey(t *testing.T) {
2016-05-24 15:55:46 -04:00
assert := assert.On(t)
2016-01-20 11:45:50 -05:00
2016-01-21 07:05:16 -05:00
id := NewID(uuid.New())
2016-05-24 16:09:22 -04:00
assert.Bool(predicate.BytesAll(id.CmdKey(), 0)).IsFalse()
2016-01-20 11:45:50 -05:00
}