mirror of
https://github.com/v2fly/v2ray-core.git
synced 2026-05-14 00:19:07 -04:00
more test cases
This commit is contained in:
@@ -15,3 +15,13 @@ func TestCmdKey(t *testing.T) {
|
||||
id := NewID(uuid.New())
|
||||
assert(predicate.BytesAll(id.CmdKey(), 0), IsFalse)
|
||||
}
|
||||
|
||||
func TestIdEquals(t *testing.T) {
|
||||
assert := With(t)
|
||||
|
||||
id1 := NewID(uuid.New())
|
||||
id2 := NewID(id1.UUID())
|
||||
|
||||
assert(id1.Equals(id2), IsTrue)
|
||||
assert(id1.String(), Equals, id2.String())
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user